Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
* html body
That page is having the body id = “mainpage”
That makes most of your answer nice and easy you should simply insert the body ID into all the rules (in their place in the tree) this is called "specificity" in other words you are going to make those rules so specific they will only apply to pages with that ID in them.
* html body#mainpage
You have however a rule for the <html> element,
, which you cannot target this way as you cannot target parents based on their children - the <body> with the ID is a child of the <html>
so if it's important to target that rule, is it possible you can put pages unique ID's onto the <html> element instead - or if there are wrapper divs already in place move everything down a level in the code?