?
Solved

CSS Question + HREF

Posted on 2011-10-04
3
Medium Priority
?
344 Views
Last Modified: 2012-05-12
Hi All - I'm having a mental brain fart - How do I do the css for a href
I tried .name a { }  and it didn't seem to do anything.

  <div class="name">
    <a href="/?q=user/29" title="View user profile.">lindseyc</a>  </div>

Thanks!
Zack
0
Comment
Question by:zack4x4
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Gregg earned 2000 total points
ID: 36913794
.name a:link {color: #009900;}
.name a:visited {color: #999999;}
.name a:hover {color: #333333;}
.name a:focus {color: #333333;}
.name a:active {color: #009900;}

should work. see:
http://www.cssbasics.com/chapter_11_css_anchors_links_pseudo_classes.html

(almost at bottom page) hope this helps.
0
 
LVL 4

Author Closing Comment

by:zack4x4
ID: 36914315
That worked perfect thanks!
0
 
LVL 10

Expert Comment

by:Gregg
ID: 36914368
Glad it worked! Thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
The viewer will learn how to count occurrences of each item in an array.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question