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 8 of 8
  1. #1
    Senior Member joncom11's Avatar
    Join Date
    Oct 2003
    Posts
    284
    Member #
    3532
    I want my links to be black and have no underline while not being hovered over.. but when they are being hovered over i want them to change color and have underline. to do so I use this:

    .nav a:hover { text-decoration: underline; color: #CCCCCC; }
    .nav a:link, nav a:visited, .nav a:active { color: #000000; text-decoration: none; }

    this work all fine and dandy until i click a link and it is now a "visited" link... now even when i do hover.. it will not change color or show the underline.. how can I made it so it will ALWAYS have the hover effect?
    Pixel Fuse - Signature webpage, just a spashpage.
    Flash Frogger - Frogger remake, animated/coded in Flash (incomplete/discontinued)
    Daase Art Studio - Homepage of David Daase, a Canadian landscape artist - image gallery/showcase.
    More links if I think of some...

  2.  

  3. #2
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    Move the hover property down. List it after your link, visited and active definition.

  4. #3
    Senior Member joncom11's Avatar
    Join Date
    Oct 2003
    Posts
    284
    Member #
    3532
    ah.. never knew that made a dif.. thanks alot!
    Pixel Fuse - Signature webpage, just a spashpage.
    Flash Frogger - Frogger remake, animated/coded in Flash (incomplete/discontinued)
    Daase Art Studio - Homepage of David Daase, a Canadian landscape artist - image gallery/showcase.
    More links if I think of some...

  5. #4
    Senior Member
    Join Date
    Dec 2003
    Posts
    1,274
    Member #
    4362
    Yes, because CSS is CASCADING, that is, the last said property has more importance than others before, and that the properties are inherited to child elements

  6. #5
    Senior Member teal's Avatar
    Join Date
    Dec 2003
    Posts
    247
    Member #
    4319
    You link's pseudos should always go in the order :link -> :visited -> :hover -> :active.
    Whoth steps forth to mock the teal? Whom couldst say a color superior!

    Proclamith me, it cannot be done.

  7. #6
    Junior Member daredeviluk's Avatar
    Join Date
    Jun 2004
    Location
    Newcastle Upon Tyne
    Posts
    1
    Member #
    6208
    cheers

    Quote Originally Posted by teal
    You link's pseudos should always go in the order :link -> :visited -> :hover -> :active.
    great! i also had hover last - i was wondering why my 'active' didn't work! cheers mate!

    DD :classic:

  8. #7
    J&J
    J&J is offline
    Junior Member
    Join Date
    Feb 2004
    Location
    your temp folder
    Posts
    11
    Member #
    4783
    Cascade order for link properties is easy to remember when you think of the statement "LoVe beFore HAte". Here's the breakdown of the capital letters in that statement so you'll see what I mean:

    L - link/a:link
    V - visited/a:visited
    F - focus/a:focus
    H - hover/A:hover
    A - active/a:active
    ~ J&J ~
    "Sometimes I feel like I'm rearranging deck chairs on the Titanic."


    Workin' | Family | Community | S.W.O.R.D. (NWN) | Unknown World | City of Petra (Matrix)

  9. #8
    Senior Member rosland's Avatar
    Join Date
    Jul 2003
    Location
    Norway
    Posts
    1,944
    Member #
    2096
    Links Visited Follows Hover Activity
    S. Rosland


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 11:11 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com