



Make sure you configure the DOCTYPE in your HTML template pages. If this property is not set than Internet Explorer will use the default "plain text" DOCTYPE and than don’t use any margins or other CSS properties defined like width or height.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>DocType</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
</div>
<div id="content">
<div id="page">
<p>Hello world!</p>
</div>
<!– end page –>
<div id="sidebar">
<h3> Menu</h3>
<ul>
<li><a href="#">Home</a> </li>
<li><a href="#">About Us</a> </li>
<li><a href="#">Services</a> </li>
<li><a href="#">Support</a> </li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Contact</a></li>
</ul>
<h3> Contact</h3>
<p> Ivan Versluis</p>
<p> Voorstraat 100</p>
<p> Dordrecht</p>
</div>
</div>
<!– end content –>
</div>
<!– end wrapper –>
</body>
</html>
Example without doctype in Internet Explorer:
http://networknet.site88.net/learning/01-doctype/doctype-without.html
Example with doctype and center wrapper:
http://networknet.site88.net/learning/01-doctype/doctype-with.html




Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!


More Options ...

Categories
Tag Cloud
Blog RSS
Comments RSS
Void
Life « Default
Earth
Wind
Water
Fire
Light 