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 3 of 3

Thread: H1 tag

  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    H1 tag

    I have the class=52px, then the H1 tag, then class=14px below it.

    Problem is, there's a huge 1 inch space between the 52px line and the i4px line when I use H1 (18px) tag.

    <table width="135" border="3" cellspacing="0" cellpadding="0" bordercolor="#ffffff" bgcolor="#304467">
    <tr valign="top">
    <td align="center">
    <font class="52px"><u>ZOOBIE'S</u></font><br>
    <H1>FUNNY JOKE SITE!</H1><br>
    <font class="14px">~ Mother-in-Laws ~</font> </td>
    </tr>
    </table>

    Fix?

    Thanks
    Last edited by zoobie; 09-04-2002 at 10:10 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    h1 {
    margin:0px;
    padding:0px;
    }

    And you don't need the linebreaks before and after the h1. That's really causing that space. If you set your font size to 52 px and put a <br> tag after that, your new line will start 52 px lower...
    Headers are block elements, they don't need a linebreak.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    And before them evidently...

    Thanks
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

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