4 ms·
Fr units (fraction, measure of flexibility) shall be allowed on width,height,margin,padding and borders. Instead of using flexbox I should just be able to writ
by c-smile 8y ago
Fr units (fraction, measure of flexibility) shall be allowed on width,height,margin,padding and borders.
Instead of using flexbox I should just be able to write:
label { width:1fr; }
input { width:2fr; }
to distribute the widths in 1:2 ratio.
Easy, obvious and has very good mental model - flexes are just springs where fr unit expresses their strength.