Log in

View Full Version : Newbie Trying To Use H1 Tag



yannay
11-08-2009, 12:44 AM
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?

jamidodger
11-08-2009, 03:18 PM
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.

webboc
11-14-2009, 06:31 PM
Hi

Try this:

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