View Full Version : Li Styling Problem

06-09-2012, 10:09 PM
I have created a Photos page for a social network but there is a space to the left of the first image and I have no idea what is causing it. Any help would be greatly appreciated.


06-09-2012, 10:50 PM
Try removing the images from the list and float the image divs left if nessesary. I think whats going on, at least for the first row of images, is that its floating the first image right because all lists automatically float stuff right. I think removing the images from the list will take care of that. an d they should by default line up with eachother.

06-09-2012, 11:36 PM
But I need to keep the images on this page!

06-09-2012, 11:58 PM
You could add a float:left to the <ul>


06-10-2012, 12:32 AM
I fixed it by adding:
.main .photos li:first-child {
margin-left: -70px;

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum