On Jun 5, 2007, at 9:56 PM, viri bruk wrote: > Say, an HTML page is coded like that: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > [....] > body { > margin:0; > padding:0; > } > </style> > <!-- Should remove margins from the page. --> > <title>Page's title</title> > </head> > <body> > <h1>Header</h1> > <p>Some text goes here.</p> > [...] > > On the new Firefox and Opera this does not seem to work, whitespace > remains at the top. Is it because of using HTML 4.01 or is it some > other problem? This has nothing to do with html 4.01. Most block level elements have a default margin at the top (and bottom). In IE 6 and 7 you won't see that top margin on your h1, but that is a bug in IE, caused by the fact that <body> 'hasLayout' [1]. setting h1 {margin-top:0} would remove that gap if you want.
[1] <http://www.satzansatz.de/cssd/onhavinglayout.html> Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/