Multiple Link Rollovers By Div Id?
Posted on 2011-04-25
Let's say I have two DIV tags, each with their own content. I'd like the (a href) links in DIV 1 to be red. I'd like to have the links in DIV 2 to be green. My DIV's are just defined like this right now:
<div id="test1"><a href="#">Link Test 1</a></div>
<div id="test2"><a href="#">Link Test 2</a></div>
Right now, my stylesheet has just this, which is all page inclusive.
Is there a way to define these attributes to the DIV Id name?