Any element can be made resizable if we apply the folowing CSS to it:
resize: both;
Please note that it will work only if the overflow
property is set to something other than visible. We can even combine the resize with something like min-width
or max-with
to set specific bonds for it. Also, any attributes like offsetWidth
will be updated to the new sizes.
📖 50 Javascript, React and NextJs Projects
Learn by doing with this FREE ebook! Not sure what to build? Dive in with 50 projects with project briefs and wireframes! Choose from 8 project categories and get started right away.
📖 50 Javascript, React and NextJs Projects
Learn by doing with this FREE ebook! Not sure what to build? Dive in with 50 projects with project briefs and wireframes! Choose from 8 project categories and get started right away.