Problem with div heights?

Have you ever encountered this type of bug please let me know guys, that how to solve this one.

That fourth div should be placed at the start but coming below the third div because of height.

Note:-
user can add as many divs as he want with different class and different heights.

Can we see some code?
Iā€™m guessing you are using floats here.

for example

div{
float:left;
}
<div style="width:33%;height:100px;border:1px solid #000"></div>
<div style="width:33%;height:100px;border:1px solid #000"></div>
<div style="width:33%;height:90px;border:1px solid #000"></div>
<div style="width:33%;height:100px;border:1px solid #000"></div>

Maybe inline-blocks would work better than floats for you.

3 Likes

I guess it work. thanks for the help.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.