In article Troy Parker wrote:
Quote:
Hello,
When the example HTML below is viewed on IE 6, "Text" and "Heading" line up.
On Mozilla 1.5, they don't; there's blank space above "Heading".
What is the best way to make Mozilla look like IE? |
Not using table layout.
Quote:
The only thing that comes to mind is to use something like <h3
style="margin-top: 0"> in place of the first <h3>. But that seems very
dirty. Surely there must be a better way to tell Mozilla "no margin on the
first/last block elements of a table cell", i.e. "behave like IE"? |
well, of course you can say
td *:first-child {margin-top:0}
That would also match inline elements, but wouldn't break anything
IIRC, IE thinks there isn't margin on top of headings, and mozilla thinks
there is by default. Or was that with paragraphs. Maybe it is both.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.