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;
[...]
- Hm, I should probably have noticed when all of my sites were down for an entire day. 4 hrs ago
- It's 7:22 and everyone's bailed. Something I said? 7 hrs ago
- PPK suggests a new buzzword: "HTML5 apps". We've been using that internally for a few weeks, and it makes a difference. http://j.mp/c0Kj7H 1 day ago
- More updates...
-
Categories
-
Archives
Tweets
Posting tweet...

