Lid |
|
Hallo,
Ik ben een site aan het opmaken en nu ben ik al de hele dag bezig met mijn div tags goed te zetten.
Wat ik wil is dat ik een "header" heb met daaronder een "navigation" en daaronder links een "menu" en daarnaast een "banner" en dan onder "menu" en "banner" een "footer"
Echter loopt mijn "footer" door mijn "menu" en "banner" heen, en dus niet eronder.
Kan iemand mij opweg helpen?
Alvast bendankt, Tom
Hieronder mijn Code en CSS:
<!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>Untitled Document</title>
<link href="css/wrapper.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">Content for id "header" Goes Here </div>
<!------------------------------------------------------------------end header------------>
<div id="navigation">Content for id "navigation" Goes Here </div>
<!------------------------------------------------------------------end navigation-------->
<!--<div id="content">-->
<div id="menu">Content for id "menu" Goes Here</div>
<!----------------------------------------------------------------end menu----------->
<div id="banner">Content for id "banner" Goes Here</div>
<!----------------------------------------------------------------end banner------------>
<!--</div>
<!------------------------------------------------------------------end content----------->
<div id="footer">Content for id "footer" Goes Here</div>
<!-----------------------------------------------------------------end footer------------>
</div>
<!--------------------------------------------------------------------end wrapper----------->
</body>
</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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/wrapper.css" rel="stylesheet" type="text/css" /> <div id="header">Content for id "header" Goes Here </div> <!------------------------------------------------------------------end header------------> <div id="navigation">Content for id "navigation" Goes Here </div> <!------------------------------------------------------------------end navigation--------> <!--<div id="content">--> <div id="menu">Content for id "menu" Goes Here </div> <!----------------------------------------------------------------end menu-----------> <div id="banner">Content for id "banner" Goes Here </div> <!----------------------------------------------------------------end banner------------> <!--</div> <!------------------------------------------------------------------end content-----------> <div id="footer">Content for id "footer" Goes Here </div> <!-----------------------------------------------------------------end footer------------> <!--------------------------------------------------------------------end wrapper----------->
#wrapper {
width: 1150px;
margin-top: 0px;
margin-right: auto;
margin-bottom: auto;
margin-left: auto;
}
#header {
background-color: #F00;
height: 50px;
margin-top: 0px;
margin-right: auto;
margin-bottom: auto;
margin-left: auto;
width: 1150px;
}
#navigation {
background-color: #0F0;
width: 800px;
margin-top: 0px;
margin-right: auto;
margin-bottom: auto;
margin-left: 0px;
height: 20px;
}
#content {
background-color: #999;
height: auto;
width: 1150px;
}
#menu {
background-color: #00F;
width: 750px;
margin-top: 25px;
margin-left: 25px;
float: left;
height: none;
}
#banner {
background-color: #CCC;
width: 350px;
margin-bottom: auto;
margin-left: auto;
float: right;
}
#footer {
background-color: #F00;
height: auto;
width: auto;
margin-top: auto;
margin-right: auto;
margin-bottom: auto;
margin-left: auto;
}
#wrapper { width: 1150px; margin-top: 0px; margin-right: auto; margin-bottom: auto; margin-left: auto; } #header { background-color: #F00; height: 50px; margin-top: 0px; margin-right: auto; margin-bottom: auto; margin-left: auto; width: 1150px; } #navigation { background-color: #0F0; width: 800px; margin-top: 0px; margin-right: auto; margin-bottom: auto; margin-left: 0px; height: 20px; } #content { background-color: #999; height: auto; width: 1150px; } #menu { background-color: #00F; width: 750px; margin-top: 25px; margin-left: 25px; float: left; height: none; } #banner { background-color: #CCC; width: 350px; margin-bottom: auto; margin-left: auto; float: right; } #footer { background-color: #F00; height: auto; width: auto; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; }
|