Results 1 to 3 of 3

Thread: Newbie Trying To Use H1 Tag

  1. #1
    Join Date
    Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Newbie Trying To Use H1 Tag

    Hi,

    I am trying to design a page using a H1 Tag for the first time. However when I use it makes the area look messy:

    Page with H1:
    http://www.oaklivingroomfurniture.co.uk

    Page without H1:
    http://www.pinelivingroomfurniture.co.uk

    I haven't added any height dimensions in the H1 tag but it makes the section I want to use it on appear enlarged, can anyone advise me how I can fix this please?

  2. #2
    Join Date
    Nov 2009
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Some browsers display text within an h1 tag differently to text within a standard p tag:

    The default font size for <h1> in some browsers have, unfortunately, motivated many writers and tools to use an <h2> element in stead.
    http://www.w3.org/QA/Tips/Use_h1_for_Title

    If you have used css to style your p tags you could try by using the same styling in the h1 tag then editing things like font size and weight to give you the look you require without altering your line height or any other aspects you want to remain the same.

  3. #3
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Try this:

    .headertop h1 {font-size: 12px;
    font-weight:bold;
    font-family: arial, verdana;
    margin:0;
    padding:0;
    }

Bookmarks

Posting Permissions

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