Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts

    make a an a div a differnt color

    I have:

    #breadcrumbs a
    {
    text-decoration:none;
    color:#949182;
    font-size:10px;
    }
    #breadcrumbs bon a{
    color:#ffffff;
    }

    and my html is

    <a href=#>test</a> > <a href=# id=bon>test 2</a>

    but it's not working

    I want the link with the id of bon to be white instead of gray

  • #2
    New Coder
    Join Date
    Dec 2006
    Location
    GB
    Posts
    79
    Thanks
    3
    Thanked 1 Time in 1 Post
    Code:
    a #bon {
    	color: #FFFFFF;
    }
    Last edited by Jacka; 09-16-2007 at 07:38 PM.

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts
    that's still not working (and i changed the color to white)

  • #4
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Code:
    #breadcrumbs a
    {
    text-decoration:none;
    color:#949182;
    font-size:10px;
    }
    #breadcrumbs a#bon {
    color:#ffffff;
    }
    
    and my html is
    
    <div id="breadcrumbs">
    <a href="#">test</a>
    <a href="#" id="bon">test 2</a>
    </div>
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #5
    Senior Coder
    Join Date
    May 2004
    Posts
    1,464
    Thanks
    15
    Thanked 0 Times in 0 Posts
    thanks.. that worked


  •  

    Posting Permissions

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