Troy Parker a écrit:
[color=blue]
> 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?
>
> 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"?
>
> Thanks,
> Todd Parker
>
> --------------------------------------------------------------
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <body>
> <table border="1">
> <tr>
> <td valign="top">
> Text
> </td>
> <td valign="top">
> <h3>Heading</h3>
> ...
> <h3>Heading</h3>
> ...
> </td>
> </tr>
> </table>
> </body>
> </html>[/color]
Also, if your DOCTYPE header is XHTML and your code is not (like here)
mozilla ang konqueror display a different rendering; actually, they do not
render well.
I do not know for iexplore.
Bonne chance!
--
Marc Nadeau
La Pagerie
http://www.pagerie.com