html - How to resize divs into another Div -
i'm struggeling following working css (width resizing):
i've 4 divs inside div. 2 of 2 divs, 1st , 3d, have text , of fixed size (we don't know in advance). 2 other divs, , b, should take each of them 50% of remaining space.
ideally min. width, make boxes 2 , 3 go new line.
is possible pure css ?
if use calc()
function maybe can. if can't it, can try flexbox
less compatibility older browsers.
.content { font-size: 0; } .content > * { font-size: 16px; } .fixed { width: 50px; } .a, .b, .c, .d { display: inline-block; vertical-align:top; } .b, .d { width: calc(50px - 50px - 50%); }
this means .b, .d
sizes .a - .c - 50%
good luck
Comments
Post a Comment