Why does the code below produce two different pages.
IE seems to work fine and put a border around the div.container that houses the div.box's while Firefox just has a line across the top.
You can see what I mean
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>test page</title>
<style type="text/css">
#container
{
width: 700px;
margin: 0 auto;
border: 2px solid #112b80;
}
div.box {
border: 2px solid #112b80;
height: 10em;
width: 40%;
margin: 10px 20px;
float: left;
padding: 1px 5px 5px 5px;
}
</style>
<head>
<body>
<div id="container">
<div class="box"><h1>Popular</h1></div>
<div class="box"><h1>Top</h1></div>
<div class="box"><h1>Bottom</h1></div>
<div class="box"><h1>Best</h1></div>
</div>
</body>
</html>
any ideas
IE seems to work fine and put a border around the div.container that houses the div.box's while Firefox just has a line across the top.
You can see what I mean
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title>test page</title>
<style type="text/css">
#container
{
width: 700px;
margin: 0 auto;
border: 2px solid #112b80;
}
div.box {
border: 2px solid #112b80;
height: 10em;
width: 40%;
margin: 10px 20px;
float: left;
padding: 1px 5px 5px 5px;
}
</style>
<head>
<body>
<div id="container">
<div class="box"><h1>Popular</h1></div>
<div class="box"><h1>Top</h1></div>
<div class="box"><h1>Bottom</h1></div>
<div class="box"><h1>Best</h1></div>
</div>
</body>
</html>
any ideas