stevenmw
10-26-2009, 12:37 PM
Fo some reason my body tag won't work. Everything in the stylesheet works except the body piece.
Here is my html:
<!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>
<link rel="stylesheet" type="text/css" href="style.css">
<title>...</title>
</head>
<body>
<div class="page">
<div class="outline">
<div class="topbox">
</div>
</div>
<div class="outline2">
<div class="mainnav">
</div>
</div>
<div class="outline3">
<div class="secondnav">
</div>
</div>
</div>
</body>
</html>
Here is my css:
/* CSS Document */
<style type="text/css">
body {
font-family: Verdana, Helvetica, Arial, sans-serif;
background: #949ca9;
}
.page {
background-color: #FFFFFF;
border-top: #FFFFFF 0px solid;
border-left: #847f7b 1px solid;
border-right: #847f7b 1px solid;
width: 900px;
height: 700px;
margin-top: 0px;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
margin-left: auto;
margin-right: auto;
}
/* header navigation */
.outline {
border: #92928f 1px solid;
height: 22px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.outline2 {
border: #92928f 1px solid;
border-top: #92928f 0px solid;
height: 22px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.outline3 {
border: #92928f 1px solid;
border-top: #92928f 0px solid;
height: 30px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.topbox {
border: #d9d8d2 1px solid;
height: 20px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.mainnav {
border: #d9d8d2 1px solid;
height: 20px;
background: #837e7a;
margin-left: auto;
margin-right: auto;
}
.secondnav {
border: #d9d8d2 1px solid;
height: 28px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
</style>
Here is my html:
<!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>
<link rel="stylesheet" type="text/css" href="style.css">
<title>...</title>
</head>
<body>
<div class="page">
<div class="outline">
<div class="topbox">
</div>
</div>
<div class="outline2">
<div class="mainnav">
</div>
</div>
<div class="outline3">
<div class="secondnav">
</div>
</div>
</div>
</body>
</html>
Here is my css:
/* CSS Document */
<style type="text/css">
body {
font-family: Verdana, Helvetica, Arial, sans-serif;
background: #949ca9;
}
.page {
background-color: #FFFFFF;
border-top: #FFFFFF 0px solid;
border-left: #847f7b 1px solid;
border-right: #847f7b 1px solid;
width: 900px;
height: 700px;
margin-top: 0px;
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
margin-left: auto;
margin-right: auto;
}
/* header navigation */
.outline {
border: #92928f 1px solid;
height: 22px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.outline2 {
border: #92928f 1px solid;
border-top: #92928f 0px solid;
height: 22px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.outline3 {
border: #92928f 1px solid;
border-top: #92928f 0px solid;
height: 30px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.topbox {
border: #d9d8d2 1px solid;
height: 20px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
.mainnav {
border: #d9d8d2 1px solid;
height: 20px;
background: #837e7a;
margin-left: auto;
margin-right: auto;
}
.secondnav {
border: #d9d8d2 1px solid;
height: 28px;
background: #f7f7f3;
margin-left: auto;
margin-right: auto;
}
</style>