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#1and div#2.

note: viable solution if there parent container contain these 2 div.

learn more flex.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -