html - How to resize divs into another Div -


i'm struggeling following working css (width resizing):

enter image description here

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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -