Frenske123
Terugkerende gebruiker
- Lid geworden
- 2 jul 2007
- Berichten
- 1.267
Hallo
Bijgevoegd code
de navigatie links , deze wil ik over de hele hoogte hebben , en meebeweegt met de hoogte van main content rechts
is dit mogelijk ....height: 100 % werkt niet ??
Bijgevoegd code
de navigatie links , deze wil ik over de hele hoogte hebben , en meebeweegt met de hoogte van main content rechts
is dit mogelijk ....height: 100 % werkt niet ??
HTML:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Fixed 2 Col CSS Layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
body{
font: 80% arial,sans-serif;
text-align:center;
padding: 0;
margin: 0;
}
a{
display:block;
color: #006;
padding:10px;
}
p{
margin: 5px;
}
#wrapper{
width:700px;
margin:0 auto;
text-align: left;
}
#header{
width: 100%;
padding: 5px;
background: #EEE;
color: #336699;
}
#footer{
background: #000;
color: #FFF;
padding: 5px;
clear:both;
width:100%;
}
#maincontent{
float:right;
width: 600px;
}
#navigation{
float:left;
width:100px;
background: #CCCCCC;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>Header Text</h1>
</div>
<div id="navigation">
<p><a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
<a href="#">Link 4</a>
<a href="#">Link 5</a></p>
</div>
<div id="maincontent"><p></p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p> </p>
<p>g</p>
<p>g</p>
<p>g</p>
<p>g</p>
<p> </p>
<p>g</p>
<p>g</p>
</div>
<div id="footer">
<div align="center">Footer</div>
</div>
</div>
</div>
</body>
</html>
Laatst bewerkt door een moderator: