Visited link color

Discussion in 'CSS' started by tomsign, Jul 16, 2010.

  1. #1
    hi,,,


    Is there any way to set visited link color for a specific link and a different one for others? Really having a tough time with this in my current project.

    Thanks,
     
    tomsign, Jul 16, 2010 IP
  2. Oxi

    Oxi Peon

    Messages:
    78
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sure there is, add a class to the link you want to set the specific visited color for and then add the visited css e.g:

    <a class='foo' href=''>BAR</a>
    HTML:
    .foo:visited {color:white;}
    HTML:
     
    Oxi, Jul 16, 2010 IP
  3. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #3
    give different class name to different anchor links in css :)
     
    karthimx, Jul 17, 2010 IP
  4. sanhit

    sanhit Peon

    Messages:
    318
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yea give diff class name to that anchor text and define the desire color for that particular class.
     
    sanhit, Jul 17, 2010 IP
  5. ackernik

    ackernik Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    If your using dreamweaver or expressions its under the page CSS styles.
     
    ackernik, Jul 17, 2010 IP
  6. xsabrina.chic

    xsabrina.chic Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    For manual coding:

    a{color: #ffcc00;}
    a:visited{color: #66aa00;}
    a:hover{color: #ff9900;}

    This is just a sample BTW ;)
     
    xsabrina.chic, Jul 25, 2010 IP
  7. sbglobal79

    sbglobal79 Banned

    Messages:
    724
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #7
    You can define class for visited link color as
    a:visited{color: #color code;}
     
    sbglobal79, Jul 26, 2010 IP