Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    1
    Member #
    11287
    I'm trying to change the colour of the link text on a site. When I view the page on my machine it's the colour I chose but when I view the uploaded version itís purple. Iím using css to do this. What am I missing here? I've attached the page in question.

  2.  

  3. #2
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    the browser will default to a color after a link has been clicked..if you dont specify a color..

    it is good practice to change the link color after it has been visited..

    this should fix the problem..

    Code:
    A:link {text-decoration: none; color:#CCFFCC;}
    A:visited {text-decoration: none; color:#CCFFCC;}
    A:active {text-decoration: none;}
    A:hover {text-decoration: underline; color: red;}

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    You're missing the [variable]color[/variable] name there for [variable]A:visited[/variable], there, igeek.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    thanks filburt1.. i updated the post.

  6. #5
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    And you should watch the order of those links too

    It should be LoVe HAte

    a:link { ... }
    a:visited { ... }
    a:hover { ... }
    a:active { ... }

    The CSS Cribsheet is a good place to go for little tips. Keep it handy
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:08 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com