Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make inline block align at top instead of bottom

Best way for me to explain this problem is with the following images.

This: enter image description here

Needs to appear like this: enter image description here

I believe the only code affecting these two container objects (working results and result viewer) is the following css snippet.

.ItemCollection {
    display: inline-block;
    width: 45%;
}

Is this a very simple css change to be made or do I need to add some more in depth coding to make this happen?

like image 826
Volearix Avatar asked Nov 29 '22 14:11

Volearix


1 Answers

you need to add vertical-align : top to both divs

.ItemCollection {
    display: inline-block;
    width: 45%;
    vertical-align: top;
}
like image 117
benaich Avatar answered Dec 05 '22 10:12

benaich