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 problem

  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    h1 problem

    I we see its result we get so much top and bottom space just this code:

    code:

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td bgcolor="#00FFFF"><h1>Hello</h1></td>
    </tr>
    </table>

    I want to remove top and bottom space.

    any help

  • #2
    Regular Coder
    Join Date
    Jul 2007
    Posts
    571
    Thanks
    25
    Thanked 28 Times in 28 Posts
    I recon you learn CSS. Makes design much easier.

    all css would require is
    h1 {
    margin:0;
    }

    on top of making design much easier it will apply to every h1 tag in your page so u dont got to put in code every time. If u want space all u got to do is make it more specific ex:
    table h1 {
    margin:10px;
    }

    now any h1 tag in a table would have a margin but other h1 tags wont... anyway many other reason why u should learn css.
    Last edited by srule_; 07-26-2007 at 06:04 PM.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,478
    Thanks
    6
    Thanked 981 Times in 954 Posts
    And while you’re at it please also learn how to write semantic code! Especially if you’re seriously charging money for it! It hurts my eyes to see that…


  •  

    Posting Permissions

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