Here's the real cause of the problem:
Mozilla browsers consider any margins, borders, and padding to be OUTSIDE the declared dimensions and positions of a box object. This includes floats.
IE consider any margins, borders, and padding to be INSIDE the declared dimensions and positions of a box object. This includes floats.
So you have to design your page in such a way that this discrepancy doesn't matter. The trick is to nest some stuff.
On the outside, place a div with a style class with "none" for the margin, border, and padding, and positioned and sized how you want it. If a containing table is used outside the object, this can be a td with a similar class instead of a div.
Inside that, place a div with the margin, border, and padding you want in a style class.
Inside that, place your content table or div, again with a style class with "none" for the margins, border, and padding.
You can use the style text-align: left; to left-justify the text.
Last edited by MidiMagic; Jun 14th, 2007 at 4:51 pm.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
Offline 3,314 posts
since Jan 2007