The solution to this problem is probably extremely easy, but I've been struggling with it for a while an I just cannot get it working. I want to have 2 divs of different sizes aligned next to each other. Problem is that if I put any text into the first div, the other one is moved a few lines down.
The simplified version of the problem would look like this:
<html> <body> <div> <div style="background:red; display:inline-block; height:100%; width:50%;"> aaa<br> aaa<br> aaa<br> aaa<br> </div> <div style="background:green; display:inline-block; height:5em; width:5em;"> bbb </div> <div> </body> </html> also, I'd rather not use the "position" property as I cannot predict the size of the "bbb" div and I want to put some more small divs under the "bbb"