3 ms·
I don't get this exactly: > Or you know, how about we just make the box bigger so it fits the text, we could just get rid of the explicit width and height and e
by darepublic 3y ago
I don't get this exactly:
> Or you know, how about we just make the box bigger so it fits the text, we could just get rid of the explicit width and height and everything will just work.
Doesn't the out of the box styling give you just that:
<div>{arbitraryContent}</div>
- marcosdumay 3y agoExcept that CSS explicitly avoids having a solver, so you can't refer to that size anywhere, and if you want to do anything besides the trivial "flow the content until it ends", you can't. So yeah, if you want to have any elaborate design, you can't just let the box be sized by its content.