
www.webade.co.uk
www.communitymx.com
www.ukcsstraining.co.uk
In this tutorial you will look at specificity. Specificity is a type of weighting that has a bearing on how your cascading style sheet (CSS) rules are displayed. All rules in your style sheet carry a specificity rating regardless of selector type, although the weighting that is given to each selector type varies and will ultimately affect the styling of your web documents.
Specificity is often the cause of problems for designers who don't yet have a firm understanding on how specificity works. If you have a particular CSS rule that looks as though it should be applying a set of styles to your web page in a certain way, but it isn't; then it is very likely that your "misbehaving rule" is being overridden by a more specific selector.
After you have completed this tutorial you will have gained the ability to use specificity to your advantage. You will also have discovered how to map CSS rules to specific elements within your web page. Specificity is a powerful tool.
The examples used in this tutorial are available through the download link below. You can reference them as you work along, or you can follow along and create the examples as you work through the tutorial.
Basic knowledge of using Dreamweaver and CSS.
Adrian Senior owns the UK-based web design agency Webade, which has been in business since 1998. He is also a member of Team Macromedia and a partner at Community MX. The year 2004 saw Adrian's first trip to America, where he visited Orlando and delivered two sessions at the TODCon conference.
Adrian also provides training courses for companies who need to train their designers how to build compliant, accessible web sites using CSS and xhtml.
He's been married to his wife, Janette, for 24 years and has two children, Antony and Eleanor.