Sometimes you don\'t want an underline blindly cutting through an underlined page title!
Is there a way to automatically elegantly disable underline for
If you know your background color (assuming white, in this case), give this a shot:
h1 {
line-height: 0.9em;
border-bottom: 1px solid black;
text-shadow: 2px 2px #fff, -2px 2px #fff;
}
fiddle: http://jsfiddle.net/pmn4/a5LZE/
fyi - browsers don't play nicely with text-shadow; use it conservatively!