SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: CSS

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am trying to figure out how to Change the color of a link when the mouse hovers it. Anyone have any idea's ? I would like it to be like the sitepoint links .. except without the line .. I have the without line part .. now I just need to get the colors to change.

    Thanks

    Chuck

  2. #2
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Chucki !

    There is a fast way - but it only will function in Microsofts Explorer.

    Add a a:hover style to your style definition.
    like this :

    a {color:red}
    a:hover {color:blue}

    In Netscape Navigator you have to write Event-Handlers. This works in the same way as if you wanted to use *highlight graphics*...

  3. #3
    SitePoint Enthusiast Morpheos's Avatar
    Join Date
    Feb 2000
    Location
    Miches, DR.
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Chucki.

    The new NS Browser also supports CSS mouseover effects too.

    Just a little note on the side!

    Morpheos - Media Design/Motion
    Creative Kingdom
    morpheos@creative-k.com

  4. #4
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    A more efficient way would be:

    a { font-family: Verdana, Arial; font-size: 10pt; }
    a:hover { color: #000000; }
    a:link { color: #A80000; }
    a:vlink { color: #FFFFFF; }

    You could also set text-decorations: underline; etc.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  5. #5
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's another useful article on CSS by Matt Mickiewicz :

    http://www.webmasterbase.com/article.php?aid=43&pid=0
    My 2 Cents (or is that 2.2 Cents including GST?)


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
  •