You know how browsers will usually let you resize <textarea>s so that you have more space to type?

Turns out you can limit that behaviour to only work in the vertical direction so that it doesn't break your page layout. Just add "resize: vertical;" to your style sheet.

#webdev #css #tip


@stringlytyped okay but what about the REAL banger here - you can do this to any element, not just textareas

* { resize: both; }

@riking This is true! Not sure what one would use it for, but it sure is fun to play with

Sign in to participate in the conversation

This is a mastodon instance for social justice activists, LGBTQIA+ people, and activists in general See the Goals and technical details, and Rules and privacy policy pages for more information