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

Thread: H1 without bold

  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    7
    Thanked 0 Times in 0 Posts

    H1 without bold

    How do I get my H1 headings not to use bold?

    I have tried various settings for font-weight but it always displays as bold.

    the CSS is plain and simple:

    #main h1{
    font-size: 1.5em;
    font-weight:normal;
    }

  • #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
    That should work. Can you post all of your html and css please?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    dunners (07-17-2008)

  • #3
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    Which font are you using? That can affect how it responds to CSS. I assume you've tried:

    Code:
    #main h1 {
    	font-weight:100;
    }
    matt | design | blog

  • Users who have thanked BoldUlysses for this post:

    dunners (07-17-2008)

  • #4
    Regular Coder
    Join Date
    Jul 2008
    Posts
    195
    Thanks
    3
    Thanked 11 Times in 11 Posts
    remove the id, simply use this:

    Code:
    h1 {
    font-size: 1.5em;
    font-weight:normal;
    }
    This will be applied to all H1 headings with the need for the id statement. Remember, ONE ID per page. So, if you use <h1 id="main"> more than once, it will not work.

  • Users who have thanked macwiz for this post:

    dunners (07-17-2008)

  • #5
    New Coder
    Join Date
    Jun 2008
    Posts
    10
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Removing id has fixed it.

    Thanks for the swift responses!


  •  

    Posting Permissions

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