View Full Version : Change from (span class="t14aw") to <h4> causes the text to increase line spacing.

05-06-2007, 05:26 PM
On the index page of my website

I have tried to change the menu text command from (span class="t14aw) to use the inbuilt <h4> font.

This in itself works, but make the linespacing unusable.

The bottom line :- "One of Betty's favourite poems." is the line that I have altered.

Part of menu:-

<a href="nine.html"><span class="t13aw"><strong>Family photos.</strong></span></a><br>
<a href="hol1.html"><span class="t13aw"><strong>Holiday snaps.</strong></span></a><br>
<a href="LittleBoyBlue.html"><span class="t13aw"><strong>Little Boy Blue</strong></span></a><br>
<a href="Tarantella.html"><span class="t13aw"><strong>Do you remember an inn.</strong></span></a>
<h6>(One of Betty's favourite poems.)</h6><br>

Can anyone suggest why and is there a remedy.



05-06-2007, 06:11 PM
Can anyone suggest why and is there a remedy.
Hmm... I don't see the issue that you are talking about, but I suspect what the problem that you are experiencing is about. The space you are seeing is probably not due to line-spacing. It is due to margins.

When it comes to margins on the header elements (h1, h2,..., h6) Internet Explorer and Firefox apply different default values to the element.

Firefox is consistent (in standards mode) and always applies this:

/* excerpt from html.css */
h6 {
display: block;
font-size: 0.67em;
font-weight: bold;
margin: 2.33em 0;
which shows that the element always has a top and bottom margin.

Depending on the placement in source IE leaves out the top margin when it 'thinks' that one doesn't want it. To tame the element, you need to explicitly specify the margin to the value that you want. Example:

h6 {
margin: 0;

05-06-2007, 07:09 PM
Absolutely correct.
I had not realised that the margin needed setting.

Many thanks,