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;
[...]
Monthly Archives: December 2009
Substitute :last-child for :first-child for IE 7 support
December 1, 2009 – 4:05 pm
Add Ping.fm to your Twitter homepage with Greasemonkey / GreaseKit
December 1, 2009 – 3:50 pm
For those using either Greasemonkey or GreaseKit, I threw together a quick script to add the Ping.fm interface in your Twitter homepage:
Ping.fm / Twitter Integrator
Here’s a screenshot of what that looks like for reference:
RGBa makes a great debugging tool
December 1, 2009 – 3:31 pm
With 24 Ways pushing RGBa into the foreground today, I thought I’d share a quick debugging tip. Using RGBa can help while you’re debugging element positioning. For the adventurous, combine with a debug class:
.debug {
background: rgba(255, 0, 0, 0.5);
}

