Sun, 2010-03-14 03:18
Hi Everyone,
I have made a couple Divs that are absolutely positioned in the header.
How can I style the text links in them?
Site - http://virgintees.com/
Here's the code I have so far -
<div style="position:absolute; top:57px; left:718px; width:85px; height:28px; padding:7px; color: #fff; font-size:26px; background-color:#ED303C; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; "> Twitter </div>
Sun, 2010-03-14 03:43
#1
Use a class or ID on the div
Use a class or ID on the div and don't use inline CSS and then just target it with that ID or class.
<div id="some-area"><p><a href="#">Link</a></p></div>
and
#some-area p a, #some-area p a:link { color: #000; text-decoration: none; border: 3px solid #f00; padding: 10px; } #some-area p a:visited { color: #666; } #some-area p a:hover, #some-area p a:active { border: 3px solid #00f; }
Sun, 2010-03-14 04:12
#2
that makes sense. will give
that makes sense. will give it a shot now. thanks!
