KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am having a problem trying to find any specific details on how to properly write CSS rules in a stylesheet where the class or ID is nested within many other IDs and styles, e.g. .mainbody #container #header #toprightsearch .searchbox {} So here we have a searchbox class within a toprightsearch ID, in a header ID, in a container ID, in a mainbody class. But it appears to work properly if I omit some of the IDs. What is the correct way of listing these? If I include all of the parents does it make it more specific? Can it error on different browsers if I don't include all? And any additional information on this topic would be appreciated. Thanks
Tags (comma-separated)
Save Edits
Cancel