Consider the following:
ul li {
display: inline;
margin-right: 10px;
padding-right: 10px;
border-right: 1px solid red;
}
ul li:last-child {
margin-right: 0;
padding-right: 0;
border-right: 0;
}
This bit of CSS would give you perfect line separators in IE8+. But since IE 7 supports the :first-child pseudo-class, we can do one better:
ul li {
display: inline;
margin-left: 10px;
padding-left: 10px;
[...]
- Attention: { is now "openstache" and } is now "closestache". http://doctyper.com/x/54 16 hrs ago
- I love Valve. http://teamfortress.com/post.php?id=3578 22 hrs ago
- Hm, I should probably have noticed when all of my sites were down for an entire day. 1 day ago
- More updates...
-
Categories
-
Archives
Tweets
Posting tweet...

