Hello, there is a problem with my coding that I can't seem to solve. I'm working on the header of my site at the moment, and one of the div's background-color won't show up. I've looked it over and can't find any errors.
INDEX
Code:
<html>
<head>
<title>The Bull's Eye</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="maincontainer">
<img src="http://www.dbhsbullseye.com/photos/BANNER.png" id="banner">
<div id="container">
<?php
include ('header.php');
?>
feature content
</div>
</div>
</body>
</html>
the HEADER.php
Code:
<div id="basicnav">
<a href="/">home</a> <b>//</b> <a href="/staff.php">staff</a> <b>//</b> <a href="/advice.php">ask mama brahma</a> <b>//</b> <a href="/about.php">about</a>
</div>
<div id="subtitle">
Diamond Bar High School Student Newspaper
</div>
<div id="sectionnav">
<a href="/news">news</a>
<a href="/sports">sports</a>
<a href="/opinion">opinion</a>
<a href="/feature">feature</a>
<a href="/ae">a&e</a>
<a href="/theme">theme</a>
</div>
the STYLE.CSS
Code:
/*universal css*/
body {
color:#000;
font-family: Times New Roman;
font-size:12pt;
overflow-x:hidden;
}
#maincontainer {
margin-left: auto;
margin-right: auto;
margin-top:0px;
border-bottom:50px solid #fff;
width:740px;
}
#container {
z-index:4795;
margin-left:25px;
margin-top:-573px;
}
a, a:visited {
font-style:none;
text-decoration:none;
}
/*this is because the image is too large and goes off center.
i adjusted the margin left so that the image is properly centered without disrupting the
auto margins of the maincontainer*/
#banner {
margin-left:-270px;
}
/*this is the css for the html in the header php file*/
#basicnav {
position:absolute;
float:left;
color: #767676;
font-family:tahoma, arial;
font-size:14pt;
text-transform:uppercase;
letter-spacing:-2px;
border-right:1px solid #000;
padding-right:8px;
}
#basicnav a {
color: #767676;
}
#basicnav b {
font-weight:none;
margin-left:3px;
margin-right:3px;
}
#subtitle {
text-align:right;
margin-right:-45px;
letter-spacing:-1px;
font-family:georgia;
font-size:15pt;
color:#000;
font-style:italic;
}
#sectionnav {
margin-top:12px;
background-color:#000;
color:#fff;
font-family:trebuchet ms;
font-size:16pt;
text-align:center;
padding-top:3px;
padding-bottom:3px;
padding-left:7px;
padding-right:7px;
text-transform:uppercase;
letter-spacing:-1px;
word-spacing:25px;
}
#sectionnav a {
color:#fff;
}
the div im havnig trouble with is #sectionnav. As you can see, I've given in the property background-color:#000; for a black background but it will not show up. Thank you so much.