Problems with heading tag...advice please.

Discussion in 'HTML & Website Design' started by attick, Feb 2, 2008.

  1. #1
    Hey, I use Dreamweaver and am trying to insert some heading tags but when I do my font sizes get messed up and some go bold. What's up with that?
     
    attick, Feb 2, 2008 IP
  2. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well your question is very vauge...

    You do know that tags such as <h1> <h2> etc should be different sizes?
     
    nicangeli, Feb 2, 2008 IP
  3. attick

    attick Peon

    Messages:
    137
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Uh...actually no.
    What I did was highlight a paragraph on my site, hit the dropdown ansd selected heading 1. Doing that changed the fonts to bold but looking at the coding I can't find the <strong> tag to remove.
     
    attick, Feb 2, 2008 IP
  4. walkere

    walkere Active Member

    Messages:
    112
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Part of the traditional implementation of header tags is to make the font-weight of the text bold. This is defined in the browser's standard css stylesheet, so it'll occur unless you explicitly over-ride it.

    If all you want to do is make the text bigger, you should use a css style to enlarge regular text.

    .large { font-size: 2em; }
    Code (css):
    If you really want to use header tags, you could use css to remove the font-weight application. This might work.

    h1 { font-weight: normal; }
    Code (css):
    Good luck,
    - Walkere

    Edit: If you're not using a stylesheet for some reason, you can define this as an inline style like so...

    <h1 style="font-weight: normal;">Header Text</h1>
    Code (markup):
     
    walkere, Feb 2, 2008 IP
  5. attick

    attick Peon

    Messages:
    137
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sorry, using a stylesheet
     
    attick, Feb 2, 2008 IP