SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Firefox is putting in padding for SCRIPT and FORMs when i tell it not to!

    I have a site and I have a <SCRIPT language="javascript"><!-- --></SCRIPT> chunk of code before a <h1> and the heading is being pushed down in Firefox?

    Any ideas why?

    Also, it's the same for forms, if I have the <h1> in a form, it pushes the heading down by a line break or so, but I have a stylesheet that says FORM {margin: 0px; padding: 0px;}

    Any help would be appreciated.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you set margin-top:0 for the H1?

    Most browsers have a default top margin for heading elements.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes that appears to have fixed it thanks.

  4. #4
    SitePoint Evangelist
    Join Date
    Feb 2005
    Posts
    581
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, JavaScript should be in the "head" tags and not the "body" tags.
    I will not flame the newbies,
    I will not flame the newbies,
    I will flame the newbies...
    Table free is the way to be!

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That depends on what the script is doing, doesn't it?
    Birnam wood is come to Dunsinane


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
  •