471,336 Members | 954 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,336 software developers and data experts.

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?
Aug 26 '07 #1
2 1322
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;
may solve ur problem.
Let me know plz if it works.
Aug 26 '07 #2
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!
Aug 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Brian | last post: by
3 posts views Thread by Becky Carter Hickman-Jones | last post: by
5 posts views Thread by Tom | last post: by
11 posts views Thread by sllrphoto | last post: by
2 posts views Thread by beary | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.