Look at the following two examples: [A class="snip" href="site.com"]test1[/A] [DIV class=snip] [A href="site.com"]test2[/A] [/DIV] Please Note: <> was replaced with [] to show correctly in this message. I am trying to get the hyperlink a specific color. In test1 it works correctly. But in test2 it does not work. Is it possible to get the hyperlink a specific color without changing the [A href="site.com"]test2[/A] line?
You would have to account for both cases in the selector. DIV.snip A, A.snip { color: whatever; } Code (markup): Edit Edited the above code. Forget to add the .snip onto the A as well.