does anyone know why this CSS works in IE 7 but not Firefox or Safari?
(it works weird in Firefox and Safari)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style type="text/css">
body { background-color: #996; font: 20px/1.2 Trebuchet MS; color:
#003; }
..center_narrow {
width: 600px;
margin-left: auto;
margin-right: auto;
padding: 36px;
background: #fff
}
..main {
float: left;
width: 90%;
background: #ffd
}
</style>
</head>
<body>
<div class="center_n arrow">
Inside of CENTER <br>Inside of CENTER <brInside of CENTER <br>
Inside of CENTER <br>
<div class="main">
Inside of MAIN <br>Inside of MAIN <br>Inside of MAIN <br>Inside of
MAIN <br>Inside of MAIN <br>
</div<!-- closing .main -->
Nav
</div<!-- closing .center_narrow -->
(it works weird in Firefox and Safari)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style type="text/css">
body { background-color: #996; font: 20px/1.2 Trebuchet MS; color:
#003; }
..center_narrow {
width: 600px;
margin-left: auto;
margin-right: auto;
padding: 36px;
background: #fff
}
..main {
float: left;
width: 90%;
background: #ffd
}
</style>
</head>
<body>
<div class="center_n arrow">
Inside of CENTER <br>Inside of CENTER <brInside of CENTER <br>
Inside of CENTER <br>
<div class="main">
Inside of MAIN <br>Inside of MAIN <br>Inside of MAIN <br>Inside of
MAIN <br>Inside of MAIN <br>
</div<!-- closing .main -->
Nav
</div<!-- closing .center_narrow -->
Comment