SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru redhillccwebmas's Avatar
    Join Date
    Jun 2005
    Posts
    989
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LI font-color - not changing color but can change all other font style elements

    Hi there,

    This is really puzzling me at the moment. I am trying to change the font color of some Li's but I am unable to do so for some strange reason, but the funny thing is i can change all the other font style elements attributed to those Li's except for font color. Any ideas? Am I missing something really obvious?

    HTML:
    Code:
    <html>
    <head>
    <link href="style.css" rel="stylesheet" type="text/css"/>
    </head>
    
    <body>
    <div id="container">
    <div id="header"></div>
    
    
    <ul id="nav">
    <li>Waging Peace</li>
    <li>Become an
    
    ambassodor</li>
    <li>for your business</li>
    <li>Services</li>
    </ul>
    
    
    </div>
    </body>
    
    </html>
    CSS:
    Code:
    body{text-align:center;padding:0px;margin:0px;}
    
    #container {
    	    margin: 0px auto;   /* align for good browsers */
    		width: 750px;text-align:left;}
    
    
    
    
    #container ul#nav{
    list-style: none;
    padding: 0;
    margin: 0;width:750px;background:url(images/navbar.jpg);text-align:center;
    }
    
    #container li{display:inline;margin:0 12px 0 12px;font-family:Verdana;font-size:11px;font-weight:bold;font-color:#ffffff;}
    
    #header {width:100%;height:152px;background:url(images/website-header.jpg);}
    Thanks for your help in advance

    Cheers

    James

  2. #2
    Pedantic Semantic blain's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    font colour is specified by the element

    Code:
    color: #000000;
    not

    Code:
    font-color: #000000;
    Technology is dominated by two types of people:
    those who understand what they do not manage,
    and those who manage what they do not understand.


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
  •