3 ms·
You can do that with some funny inline-block wizardy on Vanilla CSS by the way. I don’t currently know if flex-box helps here. I think not.
by yuchi 12y ago
You can do that with some funny inline-block wizardy on Vanilla CSS by the way.
I don’t currently know if flex-box helps here. I think not.
- carterehsmith 12y agoSource? AFAIK if you want your border, padding and margin respected, there is no way to do the above in vanilla CSS. Which is why css-flexbox was proposed.
- yuchi 12y agoHere it is (it’s border-{top, bottom} based, not inline-block) http://www.mademyday.de/css-height-equals-width-with-pure-css.html http://www.mademyday.de/css-height-equals-width-with-pure-cs... The issue is that it’s only width-constrained.