3 ms·
> You can make anything resizeable so long as it’s not an inline element and it has overflow: hidden;. Correction on the last part: so long as it’s not `overfl
by chrismorgan 4y ago
> You can make anything resizeable so long as it’s not an inline element and it has overflow: hidden;.
Correction on the last part: so long as it’s not `overflow: visible`. Doesn’t need to be `overflow: hidden`, and indeed my experience is that you normally want `overflow: auto` on resizeable things.
Also “anything” is inaccurate: you mostly can’t use it with replaced elements like img/audio/video/iframe, though it varies by browser (e.g. my recollection is that resize works on iframe in Blink but not Gecko).