Unwanted padding in all HTML docs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pikados
    New Member
    • Aug 2007
    • 3

    Unwanted padding in all HTML docs

    This is driving me insane, and I can't seem to fix it. I am getting an 8px padding on the top and left of any and all HTML docs I make.
    Example: http://www.oregonstate.edu/groups/fwclub/new/index.html

    That is the most complicated one, of course. I then proceeded to test with just an image on a page, and it still did that. I did big images, small images, gifs, jpegs, it's still there!

    I am using Text Wrangler to code the pages, but I also tried Text Edit and it still appeared. Is there something I can do to make this stop occurring??? Am I just really stupid, and that has always been there but I never noticed?
  • just a feeling
    New Member
    • Aug 2007
    • 86

    #2
    You don't have a DocType declaration in ur page, which puts IE into "quirks mode" and its broken box model. Notice that u have also 34 html errors.

    Anyway, I guess that this
    [HTML]body {
    margin: 0px;
    }[/HTML]
    may solve ur problem.
    Let me know plz if it works.

    Comment

    • Pikados
      New Member
      • Aug 2007
      • 3

      #3
      Thanks! I forgot about running it through the HTML validator (showing my novice-ness, I know). And now I know what DocType is for.... Thank you!

      Comment

      Working...