Hey everybody,
I had a quick question about Web.
I'm creating a website right now, about marine life. I want to put my header inside of another header.
HTML CODE:
<!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>Marine Information</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="topsurroundingbanner">Container for Banner</div>
<div id="container">
<div id="topbanner">Top Banner </div>
<div id="navigation bar">
<a href="index.html?home">Home</a>
<a href="index.html?home">Facts</a>
<a href="index.html?home">Species</a>
<a href="index.html?home">Information</a>
</div>
<div id="main_content">Main Content</div>
</div>
<div id="footer">Footer</div>
</body>
</html>
CSS CODE:
@charset "UTF-8";
/* CSS Document */
#topsurroundingbanner {
background-color:#39618e;
height:250px;
z-index:1;
}
#topbanner {
background-color:#036;
font: arial;
height: 200px;
background-image:url(images/header.png);
top: 250px;
z-index:2;
}
#navigation bar {
width:auto;
display:block;
heigth:28px;
line-height:28px;
padding:0 8px;
display:inline;
}
#container {
width:901px;
margin-left:auto;
margin-right:auto;
}
#main_content {
background-color:#396;
height: 500px;
width:901px;
}
#footer {
background-color:#CC9;
background-repeat:repeat-x;
height: 200px;
}
I basically want to put #topbanner inside of #topsurrounding banner.
However, there's a container that's 900px wide, and I want the #topsurrounding banner to repeat-x...but at the same time, keep everything else centered inside the main container.
I had a quick question about Web.
I'm creating a website right now, about marine life. I want to put my header inside of another header.
HTML CODE:
<!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>Marine Information</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="topsurroundingbanner">Container for Banner</div>
<div id="container">
<div id="topbanner">Top Banner </div>
<div id="navigation bar">
<a href="index.html?home">Home</a>
<a href="index.html?home">Facts</a>
<a href="index.html?home">Species</a>
<a href="index.html?home">Information</a>
</div>
<div id="main_content">Main Content</div>
</div>
<div id="footer">Footer</div>
</body>
</html>
CSS CODE:
@charset "UTF-8";
/* CSS Document */
#topsurroundingbanner {
background-color:#39618e;
height:250px;
z-index:1;
}
#topbanner {
background-color:#036;
font: arial;
height: 200px;
background-image:url(images/header.png);
top: 250px;
z-index:2;
}
#navigation bar {
width:auto;
display:block;
heigth:28px;
line-height:28px;
padding:0 8px;
display:inline;
}
#container {
width:901px;
margin-left:auto;
margin-right:auto;
}
#main_content {
background-color:#396;
height: 500px;
width:901px;
}
#footer {
background-color:#CC9;
background-repeat:repeat-x;
height: 200px;
}
I basically want to put #topbanner inside of #topsurrounding banner.
However, there's a container that's 900px wide, and I want the #topsurrounding banner to repeat-x...but at the same time, keep everything else centered inside the main container.