Log in

View Full Version : Div grids with different height problem



Tano*87
11-15-2013, 07:17 PM
Hi there..I'm working on a layout and I wanted to have css to be free.

This is what I'm trying to do http://britneyspears.tumblr.com/

In my case each div have different heights and because of it each div have more than 20px spacing between each.

How can I fix it?

This is what I have on my CSS


width: 540px;
height: 100%;
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.8);
-moz-box-shadow: 0 0 5px rgba(0,0,0,0.8);
box-shadow: 0 0 5px rgba(0,0,0,0.8);
float: left;
margin-left: 20px;
margin-top: 20px;
background-color:#FFFFFF;
display: inline;

molendijk
11-15-2013, 08:01 PM
Remove margin-left: 20px and see what happens.