www.webdeveloper.com
Results 1 to 4 of 4

Thread: CSS Not doing what is is meant to!

  1. #1
    Join Date
    Jan 2007
    Posts
    14

    CSS Not doing what is is meant to!

    Hi Guys
    I have a problem and I just cant understand what is going on!

    I have the following CSS:

    HTML Code:
    .submenu{
    a:link color: #FFFFFF; 
    a:visited color: #CCCCCC;
    a:active color: #FFFFFF;
    a:hover text-decoration: underline;	color: #FFFFFF;
    margin-bottom: 0.5em;
    font-family: Verdana, Arial, Helvetica, sans-serif;  
    }
    and I am calling it by:

    HTML Code:
    <div id="masterdiv">
    
    	<div class="menutitle" onclick="SwitchMenu('sub1')">Site Menu</div>
    	<span class="submenu" id="sub1">
    		- <a href="new.htm">What's New</a><br>
    		- <a href="hot.htm">What's hot</a><br>
    		- <a href="revised.htm">Revised Scripts</a><br>
    		- <a href="morezone/">More Zone</a>
    	</span>
    As you can tell this is a Menu, but the link colour, when I publish the file is still default blue, any ideas?

    Cheers
    V

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    .submenu a:link {color: #FFFFFF;} 
    .submenu a:visited {color: #CCCCCC;}
    .submenu a:hover {
    text-decoration: underline;	
    color: #FFFFFF;
    margin-bottom: 0.5em;
    font-family: Verdana, Arial, Helvetica, sans-serif;  
    } 
    .submenu a:active {color: #FFFFFF;}
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Jan 2007
    Posts
    14
    Thank you!

    I know it was something stupid like that!

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    The pseudo classes must be in the correct order:
    link
    visited
    hover
    active
    "love hate"
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles