SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS links

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Arrggg. Ok, I'm trying to use CSS to set my nav links (class="button") to be #FFCC00 w/o underlines, until they are "hovered", then become #FF0000 and underlined when "hovered"
    All other links normal as specified....

    What am I doing wrong? Thanks!


    <STYLE>
    <!--
    A:link {color: darkblue} A:visited {color: darkblue}
    A:active {color: darkblue} A:hover {color: blue}
    A.button:link { color:#FFCC00;} A{text-decoration:none} A.button:visited {color:#FFCC00;}A{text-decoration:none}
    A.button:active {color:#FFCC00;}A{text-decoration:none} A.button:hover {color:#FF0000}
    -->
    </STYLE>

    <a href="http://www.myurl.com" class="button">Home</a>

  2. #2
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In your first <style> tag, change it to <style type="text/css">

    That's the only thing that I can see different from what I do at http://www.StreetBikersUnited.com

    Mike

    ------------------
    Street Bikers United protecting the rights of motorcyclists worldwide.
    Cosmic Custom Airbrush - Hawaii's premier airbrush studio.


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
  •