Have tough CSS questions: How to get 2 adjacent DIVs have same Height?
So we have 2 DIVs next to each other which are display: inline-block;
These DIVs have different number of inner DIVs at different sizes.
Is there a CSS method to force these 2 main adjacent DIVs have the same height? Across browsers?
You can see the page in question here: https://www.anoox.com/paid/buy_adv.php?adv_type=ppc
the DIVs in question are those 2 at the top of the page which are: #abs_top_left #abs_top_right
FYI, for now we are using a Hack to make these DIVs to have same height, based on tweeking the various padding and margin values. which tweek of course does not work fully under IE.
So looking for a real CSS based solution, if there is one.
I tried your suggestion, and it is not working. It is close, but they are not Exactly same height.
As you can see on this test page: https://www.anoox.com/paid/buy_adv_tzt.php
Yes it does, if you give “abs_top_left” a background-color too it will show the same height.
The table suggestion @Divuni gave will work the same here, though the flexbox suggestion @SamA74 gave will give you more options to align and distribute the two left and right boxes.
If you are talking about the 1px difference between the red and the blue boxes then that’s because you have a 1px white border on the bottom of the advertising text. you can remove it like this: