html - Set height to same as sibling div floating next to it? -
so have 2 divs
currently
div#1 {float:left; width:48%} , contains gallery doodad
div#2 {float:right; width:48%} , contains stack of buttons
after that, within same container bunch of other divs , plaintext follows.
so have div#1 keep doing automatic height thing want div#2 height equal div#1 vertically stretch out buttons inside.
i have no access structure (buried somewhere deep in php framework) , got css. possible within current constraints?
apply
display: flex;
to surrounding container, then
float: none;
to div#1
and div#2
.
note: viable solution if there parent container contain these 2 div
.
Comments
Post a Comment