SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist j0n's Avatar
    Join Date
    Apr 2003
    Location
    uk
    Posts
    546
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How would i go about doing this?

    Hello.

    I am working on a site at the moment and i would like to make some links in the nav bar a different color to the rest of the site.

    http://www.yesthat.com is the site in question. I would like the links in the nav to be white, and the links in the main website to be black.

    I would prefere to use inline css for this, im just not sure how to do it.

    Anyone know?

    Thanks,
    Jon

  2. #2
    Are You There? KDesigns's Avatar
    Join Date
    Oct 2003
    Location
    Your Monitor
    Posts
    1,147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best way to do this IMHO is to set the a tag in CSS to be black. That was you wouldn't have to add a style to links in your main area:

    a:link {
    color: #000000;
    }

    Is your navigation in a div of it's own? If so you can use the div id to set the link color so you wouldn't have to add a class to the code:

    #nav a:link {
    color: #FFFFFF;
    }

    If they are not in a div of their own you can just create a class for them:

    a.nav:link {
    color: #FFFFFF;
    }
    ChooseDaily.com - Follow on Twitter
    Top Resources for Web Designers and Developers Every Day!

  3. #3
    SitePoint Evangelist j0n's Avatar
    Join Date
    Apr 2003
    Location
    uk
    Posts
    546
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh thank you, that is exactley what i was looking for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •