HTML/CSS Trick of the day

Do not worry, this blog will not turn into an HTML/CSS blog, but here is a nice trick to select all hyperlinks with absolute URIs:


a[href^="http"] {
background:yellow;
}

This will, naturally, probably never work with Microsoft browsers, but it with Firefox 2.0.

Leave a Reply

Your email address will not be published. If you leave an email, you will be notified when there are replies. The comment form expects plain text. If you need to format your text, you can use HTML tags such <strong> and <em>. For formatting code as HTML automatically, I recommend tohtml.com.