Example is better than description:
[URL unfurl="true"]http://aggrippino.com/demo/html[/url]
I have a [tt]<div>[/tt] at the top of a document that I want to stick up in the top-left corner of the page and have the rest of the text kinda wrap around it. It contains only some plain text. I've got a corresponding stylesheet with padding and margin set to 0, but there's still a space above the [tt]<div>[/tt], which is at the top of the page. The padding and margin are also set to 0 for both the body and html elements.
This problem occurs in Firefox, but not IE. So, I thought it might have something to do with the default stylesheet for each browser. I don't see anything in html.css that would cause this and I don't know how to look at the default stylesheet for IE.
Experimenting, I've learned that I can correct the problem in FF by setting the [tt]margin-top: .5em;[/tt]. Naturally, that hides the top half of the letters in IE.
Does anyone have any idea why it's like this?
The only reason for this page is that I'm trying to improve my understanding about the differences between FF & IE. So, I'm going to write a few demo pages which I may or may not share with the world in a useful way in the future.
Thank you.
--
-- Ghodmode
[URL unfurl="true"]http://aggrippino.com/demo/html[/url]
I have a [tt]<div>[/tt] at the top of a document that I want to stick up in the top-left corner of the page and have the rest of the text kinda wrap around it. It contains only some plain text. I've got a corresponding stylesheet with padding and margin set to 0, but there's still a space above the [tt]<div>[/tt], which is at the top of the page. The padding and margin are also set to 0 for both the body and html elements.
This problem occurs in Firefox, but not IE. So, I thought it might have something to do with the default stylesheet for each browser. I don't see anything in html.css that would cause this and I don't know how to look at the default stylesheet for IE.
Experimenting, I've learned that I can correct the problem in FF by setting the [tt]margin-top: .5em;[/tt]. Naturally, that hides the top half of the letters in IE.
Does anyone have any idea why it's like this?
The only reason for this page is that I'm trying to improve my understanding about the differences between FF & IE. So, I'm going to write a few demo pages which I may or may not share with the world in a useful way in the future.
Thank you.
--
-- Ghodmode