Jump to content

list items not flush


Zane

Recommended Posts

Alright, I've done this a million times and this is the first time this has happened to me.

 

Everything works fine in IE but firefox is the one giving me trouble this time and that can't be happening.

I don't have any code to show because it's on another computer right now but it's really typical code so no need to show it.

 

I have an unordered list, and in each list item I have a DIV with an image in it.

 

I have set this so the UL displays horizontal. So I have something like

 

ul.thelist {
  list-style-type: none;
  margin:0px;
  padding:0px;
}
ul.thelist li{
 float:left;
}

 

now for some reason beyond me, firefox collapses the first row of images.

meaning...the list of images goes until it gets to the side of the page and continues on another row type of thing....(there are no tables)

the second row is fine......the tops of all the images are all flush with eachother which I want.....but one the first row all the images are just a little bit lower than it's previous one. NOT FLUSH.

 

 

what am I doing wrong...is there some secret out there I'm not informed of.

CSS isn't my best thing in the world...

Link to comment
Share on other sites

looks fine to me....post your code when you get back to your computer..

 

this is what i just tested with:

<html>
  <head>
    <style type="text/css">
ul.thelist {
   list-style-type: none;
   margin:0px;
   padding:0px;
}
ul.thelist li{
  float:left;
}
    </style>
  </head>
  <body>
    <ul class="thelist">
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
      <li><div><img src="http://www.phpfreaks.com/forums/index.php?action=dlattach;attach=2931;type=avatar" /></div></li>
    </ul>
  </body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.