There are some relatively under-used CSS techniques and one of these is the use of attribute selectors. Attribute selectors allow you to define a style based on the presence or value of an attribute. For example, you can style external links differently to internal links using attribute selectors.
There's no reason not to use attribute selectors because browser support these days is pretty good - although the relatively slow uptake of Internet Explorer 7 may put you off.
Don't be afraid, there are some neat things that can be done with attribute selectors! And they are sure to become more widely used when the market share of Internet Explorer 6 decreases further.
Previously: CSS attribute selectors - clever styling
Join SugarSync for online backup. Sync your files between Mac, PC and mobile phone. Get 2 GB FREE and up to 10 GB bonus space!
CSS Mastery: The second edition of this famous book by Andy Budd contains new examples and updated browser support information, new case studies from Simon Collison and Cameron Moll, and new CSS3 methods.
Buy from Amazon.com · Amazon.co.uk