Floating DIV elements is not lining up...

Posted by Ben Sinclair on Stack Overflow See other posts from Stack Overflow or by Ben Sinclair
Published on 2010-03-31T13:03:43Z Indexed on 2010/03/31 13:53 UTC
Read the original article Hit count: 437

Filed under:
|

I have dives that I am floating so that they show side by side. Here is my code:

.serviceMembersPosition {
    width: 190px;
    float: left;
    display: inline;
    border: 1px solid #999;
    margin: 5px 5px 5px 0;
    padding: 5px;
}

It works however if one of the DIV's has more info than the others, it stuffs up the floats. See how there is a gap in my screenshot below. Is there any way to overcome this? I am using JQuery with my website. Maybe there is some code for this?

alt text

© Stack Overflow or respective owner

Related posts about css

Related posts about jQuery