Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
<!--
* {padding:0;margin:0;border:0}
.* {padding:0;margin:0;border:0}
div,li {font-family:verdana;font-size:xx-small;line-height:normal}
-->
</style>
</head>
<body>
<ul>
<li>li</li>
</ul>
<div>div</div>
</body>
</html>
Make your DOCTYPE valid by changing <html> to:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
assuming you're coding an English page. As you're looking to code XHTML Strict, you're going to have to fix some of this CSS.
.* {padding:0;margin:0;border:0}
is not valid CSS, and even if it was, it would add anything that the line above hadn't already covered. Ditch both lines, and replace them with:
html * {
padding: 0;
margin: 0;
border: 0;
}
This achieves the same zeroing of padding, margin and border, without removing IE's default 1px border on the <HTML> element.
[edited by: SuzyUK at 5:49 pm (utc) on Dec. 10, 2004]