Ul Li last element not aligning properly

Posted by Chase on Stack Overflow See other posts from Stack Overflow or by Chase
Published on 2010-05-27T00:42:29Z Indexed on 2010/05/27 0:51 UTC
Read the original article Hit count: 539

Filed under:
|
|

I am having a problem where the last li element in a ul is pushing itself to the left further than the rest of all my pieces. Attached is a screen shot and my code.

I have tried using the last-child element but it doesn't work in Safari or Chrome.

#attending ul {
 display: inline;
 margin: 0 5px 0 0;
 padding-left: 0px;
}
#attending ul li {
 display: inline;
 list-style-image:none;
 padding: 5px;

}
#attending li:last-child { 
    margin-right:-4px; 
  }

Suggestions?

TIA, Chase

http://desmond.yfrog.com/Himg338/scaled.php?tn=0&server=338&filename=screenshot20100526at808.jpg&xsize=640&ysize=640

© Stack Overflow or respective owner

Related posts about css

Related posts about css-layout