Nieuw lid |
|
Ik ben bezig met het uitwerken van mijn website-ontwerp. Ik werk normaal in tabellen, maar wil overstappen naar div's. Ik heb hier enige kennis van, maar loop nog tegen wat problemen.
Ik wil graag de pagina centreren, en hij moet wel een height van 100% houden. Helaas kom ik hier zelf niet uit met de uitleg die ik overal kan vinden op internet.
DE 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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Antoinette de Jongh</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header"></div>
<div class="menublok"></div>
<div class="balk_rechts"></div>
<div class="content"></div>
<div class="header_dropshadow"></div>
<div class="footer_dropshadow"></div>
<div class="footer"></div>
</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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Antoinette de Jongh</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="header"></div> <div class="menublok"></div> <div class="balk_rechts"></div> <div class="content"></div> <div class="header_dropshadow"></div> <div class="footer_dropshadow"></div> <div class="footer"></div> </body> </html>
DE CSS
html, body { margin: 0px;
padding: 0 px;
height:100%
}
div.header {
height:79px;
background-color:#bc9c7f;
position: absolute;
top: 0px;
left: 0 px;
width: 100%;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #79614d;
background-image:url(Images/shadow.png);
background-repeat: repeat-x;
}
div.header_dropshadow { height: 4px;
position: absolute;
top: 80px;
left: 0 px;
width: 100%;
background-image: url(Images/header_dropshadow_05_05.png);
background-repeat:repeat-x;
}
div.footer_dropshadow { height: 4px;
position: absolute;
bottom: 30px;
left: 0 px;
width: 100%;
background-image: url(Images/footer_dropshadow_08.png);
background-repeat:repeat-x;
}
div.menublok { width: 240px;
position:absolute;
left: 50px;
top: 80px;
bottom: 30px;
background-color: #242424;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000;
}
div.balk_rechts { width: 25px;
position:absolute;
left: 948px;
top: 80px;
bottom: 30px;
background-color: #242424;
border-left-width: 1px;
border-left-style: solid;
border-left-color: #000;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #000;
}
div.content { position:absolute;
left: 289px;
top: 80px;
right: 77px;
bottom: 30px;
background-color:#FFF;
background-image:url(Images/flower_08.jpg);
background-position:right top;
background-repeat:no-repeat;
width: 660px;
}
div.footer { margin: 0px;
height:30px;
background-color:#bc9c7f;
position: absolute;
bottom: 0px;
left: 0px;
right:0px;
width: 100%;
clear: both;
background-image:url(Images/bottom_06.png);
background-repeat:repeat-x;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #79614d;
}
html, body { margin: 0px; padding: 0 px; height:100% } height:79px; background-color:#bc9c7f; position: absolute; top: 0px; left: 0 px; width: 100%; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #79614d; background-image:url(Images/shadow.png); background-repeat: repeat-x; } div.header_dropshadow { height: 4px; position: absolute; top: 80px; left: 0 px; width: 100%; background-image: url(Images/header_dropshadow_05_05.png); background-repeat:repeat-x; } div.footer_dropshadow { height: 4px; position: absolute; bottom: 30px; left: 0 px; width: 100%; background-image: url(Images/footer_dropshadow_08.png); background-repeat:repeat-x; } div.menublok { width: 240px; position:absolute; left: 50px; top: 80px; bottom: 30px; background-color: #242424; border-left-width: 1px; border-left-style: solid; border-left-color: #000; border-right-width: 1px; border-right-style: solid; border-right-color: #000; } div.balk_rechts { width: 25px; position:absolute; left: 948px; top: 80px; bottom: 30px; background-color: #242424; border-left-width: 1px; border-left-style: solid; border-left-color: #000; border-right-width: 1px; border-right-style: solid; border-right-color: #000; } div.content { position:absolute; left: 289px; top: 80px; right: 77px; bottom: 30px; background-color:#FFF; background-image:url(Images/flower_08.jpg); background-position:right top; background-repeat:no-repeat; width: 660px; } div.footer { margin: 0px; height:30px; background-color:#bc9c7f; position: absolute; bottom: 0px; left: 0px; right:0px; width: 100%; clear: both; background-image:url(Images/bottom_06.png); background-repeat:repeat-x; border-top-width: 1px; border-top-style: solid; border-top-color: #79614d; }
|