html - Smart way to make divs the same size with css? -


i have 2 different divs various contents, , them same height , width. seems bad idea set height , width fixed pixel size, because size should vary based on browser/screen size. setting width percentage works, percentage not option height.

is there way ensure 2 divs have same dimensions without setting fixed pixel sizes? or fixed pixel sizes bad?

having outer div display: table; , these 2 divs inside display: table-cell; should work you.


Comments

Popular posts from this blog

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

html - href attribute breaking an element -