Languages
[Edit]
EN

CSS - create resizable element

0 points
Created by:
Marley-Marks
712

In this article, we would like to show you how to create resizable elements using CSS.

Quick solution:

or:

or:

Warning: This solution was introduced to Microsoft Edge around 2020.

 

Practical examples

Edit

1. Resizable element in both directions

Edit

In this example, we set resize property value to both, so we can resize the element both vertically and horizontally.

2. Horizontal only

Edit

In this example, we set resize property value to horizontal, so we can resize the element horizontally.

3. Vertical only

Edit

In this example, we set resize property value to vertical, so we can resize the element vertically.

References

Edit
  1. resize - CSS: Cascading Style Sheets | MDN

Alternative titles

  1. CSS - make element resizable
  2. CSS - create resizable div
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join