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
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
© Stack Overflow or respective owner