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 4 of 4

Thread: css not chaning

  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts

    css not chaning

    #breadcrumbs
    {
    margin-top:1px;
    margin-left:2px;
    margin-bottom:0px;
    margin-right:1px;
    padding:0px 0 0px 10px;

    background:#b7b4a5;

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

    that's my css and in html


    <div id="breadcrumbs"><a href=index.php>Home</a> > <a href=reasons.php id=bon>10 Reasons</a></div>

    now the links are stubbornly staying white no matter what. If i change the font size I can see the change but if I chagne the color - it stays white?? any ideas?

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Posts
    495
    Thanks
    0
    Thanked 82 Times in 80 Posts
    They will be black unless there is another rule with a higher specificity.

  • #3
    New Coder
    Join Date
    Sep 2007
    Posts
    34
    Thanks
    0
    Thanked 7 Times in 7 Posts
    make sure ur question is correct ?

    regards,
    rams

  • #4
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    Although not causing your problem, your markup is invalid. Attribute values should be in quotes.
    Code:
    <div id="breadcrumbs"><a href=index.php>Home</a> > <a href=reasons.php id=bon>10 Reasons</a></div>
    should be
    Code:
    <div id="breadcrumbs"><a href="index.php">Home</a> > <a href="reasons.php" id="bon">10 Reasons</a></div>
    You've specified an id of "bon" for the 'Reasons' link but I don't see that defined in your css.

    Finally, clearly what you posted is not the entire code. If you paste that code into an empty html doc, it displays the links in black.


  •  

    Posting Permissions

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