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
Post a Comment