I'm trying to learn more CSS by doing, so I'm attempting to copy bits of CSS found elsewhere on the web which I like into my own stylesheet. The problem of course is that it also affects the rest of my styling as many of the classes and IDs are the same.
For instance, in my own stylesheet I have a DIV section I've called "faq_contents" and have found some CSS styling which I want to use, but only affecting that section of course. So how do I rewrite the classes/IDs used in the following example?:
Code:#container {width: 820px; margin: 0 auto;} #container h2 {padding: 5px; } h3 {padding: 4px 10px; font-size: 10px; font-weight: normal;} h3 a:hover, h3 a:active {color: blue; background: orange;} h3 a:link, h3 a:visited {font-weight: normal; letter-spacing: 2px; display: block; color: #222;} a:link, a:visited {color: #5275b4; font-weight: bold; outline: none;} a:hover, a:active {color: blue;}



Reply With Quote







Bookmarks