21 Dec 2008 @ 10:35 AM 

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:

image

http://networknet.site88.net/learning/01-doctype/doctype-without.html

Example with doctype and center wrapper:

image

http://networknet.site88.net/learning/01-doctype/doctype-with.html

Tags Tags: , ,
Categories: CSS
Posted By: admin
Last Edit: 04 Jan 2009 @ 09 41 PM

E-mailPermalinkComments (0)

 21 Dec 2008 @ 4:18 AM 

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

Tags Categories: Uncategorized Posted By: admin
Last Edit: 21 Dec 2008 @ 04 18 AM

E-mailPermalinkComments (1)

\/ More Options ...
Change Theme...
  • Users » 1
  • Posts/Pages » 3
  • Comments » 1
Change Theme...
  • VoidVoid
  • LifeLife « Default
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLight
  • No Child Pages.