Bug fix for IE : IE « IE Firefox « HTML / CSS






Bug fix for IE

 

<!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=utf-8" />
    <title></title>
<style type="text/css" media="Screen">
body {
    margin: 0;
    padding: 10px;
}
</style>
   
<!--[if gte IE 5]>
<style type="text/css">
html, body {margin:0; width:160px;}
</style>
<![endif]-->
</head>
<body>
    <p>this is a test. this is a test. this is a test. this is a test. </p>
</body>
</html>

 








Related examples in the same category

1.[if ie]
2.[if lt IE 7]