Safari and Margins?
- Started
- Last post
- 6 Responses
- Creon
Anyone else having a problem with Safari not adding margins to the top and left that are so clearly defined in the HTML?
It's driving me crazy.
Any remedies?
- gravityroom0
How are you defining it in the html? I set them in a stylesheet and attach the css to the body tag. No problem here.
- jpea0
a little side topic, but with mac IE why doesn't it recognize margin's set in the html (not css)?
safari does, mozilla on all platforms does, win IE does, just not mac ie
- gravityroom0
Has something to do with never being an official html standard...
I know its not allowed in xhtml.
- jpea0
can you set them in css just like in the body tag (essentially, but with css syntax)?
body {margin:0; padding: 0; position: absolute; top:0; left:0}
like so?
- gravityroom0
I wouldn't trust it.
Just make your css in the html document instead of in a remote file if that bugs you.
Then attach the css to the body tag. You'll still be doing the whole thing on one page.
You can even code it in Dreamweaver if you're not sure the syntax.
- SaintWalker0
body {margin: 0px; padding: 0px;}
That will give you what you want. Also, the doctype definition is very important nowadays...as browsers behave depanding on what it says.