#1
  1. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    13

    Cool Simple CSS - Here's your chance to look REALLY smart!


    ok, this may be a pretty simple question, but i just have never really needed to use css until now. so, here goes....

    I have this code in my document...

    </title>
    <STYLE fprolloverstyle>
    A:link {TEXT-DECORATION: none; COLOR: white}
    A:vlink {TEXT-DECORATION: none; COLOR: white}
    A:hover {TEXT-DECORATION: underline; COLOR: #ff0000}
    </STYLE>
    </head>

    Everything works right, except for my declarations for the vlink. I assume maybe vlink is not the correct way to say Visted link. what happens right now is that the document looks great until you have visted a link, and then the link turns black and has a line under it. how do i keep the link white with no underline after it has been visted?

    Also, how do right the same style sheet inline? So that i can have some of my links one color and other links another. i do not want to link my style sheets, because of some complications with PHP. i would rather just use inline.

    Thanks!

    Caleb
    caleb@jsoftintl.com
    Last edited by calebdzahnd; August 2nd, 2001 at 09:27 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    New York
    Posts
    122
    Rep Power
    14
    Caleb:

    This is what you're looking for:
    ------------------------------
    <style type="text/css">
    a:link {text-decoration:none;color:#ffffff;}
    a:visited {text-decoration:none;color:#ffffff;}
    a:hover {text-decoration:underline;color:#ff0000;}
    </style>
    -------------------------------

    Quote: "<STYLE fprolloverstyle>". Is this a typo?

    By the way, css def's are conventionally written in lowercase, although I suppose your uppercase def's wouldn't cause problems.

    Good luck
  4. #3
  5. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    13
    Thanks! That worked great!

IMN logo majestic logo threadwatch logo seochat tools logo