467,907 Members | 1,405 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Anchors in CSS

To the group,

I have the following statement:

<h1 id="heading1">
<a href="http://www.w3.org/">World Wide Web Consortium</a>
</h1>

What I am trying to accomplish is for the text "World Wide Web Consortium" to be a different color than the underline for the "a" element? Is this possible? I want to do this using a external style sheet...

thanks

Steve
Mar 5 '08 #1
  • viewed: 1092
Share:
2 Replies
drhowarddrfine
Expert 4TB
In your CSS:
Expand|Select|Wrap|Line Numbers
  1. #heading1 {text-decoration:underline;color:blue}
  2. #heading1 a {text-decoration:none;color:red}
  3.  
Mar 5 '08 #2
Thanks! this worked great!
Mar 7 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Ben Wilson | last post: by
2 posts views Thread by mlv2312 | last post: by
1 post views Thread by mlv2312 | last post: by
2 posts views Thread by learner | last post: by
21 posts views Thread by adrian suri | last post: by
12 posts views Thread by Rich | last post: by
3 posts views Thread by windandwaves | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.