CSS Question + HREF

Posted on 2011-10-04
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>

Question by:zack4x4
    LVL 10

    Accepted Solution

    .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:

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

    Author Closing Comment

    That worked perfect thanks!
    LVL 10

    Expert Comment

    Glad it worked! Thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now