How to change the number of columns in textarea for a specific screen size? (in my case "@media (min-width: 768px) and (max-width: 970px)"). Just at this size, the field goes beyond the block, you need to reduce the number of columns. How can this be implemented using JavaScript? Thank.

    1 answer 1

    need to reduce the number of columns

    Not necessary.

    textarea { width: 100%; resize: vertical; } 
    • It really helped. I did not know about it, stupid at all) Thank you! - Getrix2020
    • @ Getrix2020, then accept the answer by clicking on the checkmarks to the left of it. - Qwertiy