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 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 different styles for h4

    Im having some trouble with my css. I have to use 2 different styles for a h4 tag. I have no trouble getting the first h4 displayed, though I cant seem to get the h4.green displayed. What am i doing wrong

    My css :

    #navigate h4{
    font:11px verdana, arial, georgia, sans-serif;
    }

    #navigate h4.green {
    font:48px verdana, arial, georgia, sans-serif;
    }


    my html:

    <div id="navigate">
    <h4>normal</h4>
    ### some html


    <h4 class="green">green</h4>
    ### some html
    </div>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It works fine for me.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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