Nieuw lid |
|
Je zal merken wat ik bedoel, als ik een paragraaf of een h1 tag gebruik zal de bovenkant van het woordje CONTENT niet even hoog staan als LEFTNAV, hoe los ik dat probleem op, alle code die ik gebruik zit erbij?
Moet ik aan de slag met het text-align en/of position attribuut?
<!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>Testsite</title>
<style>
#container
{
width: 960px;
background-color: #FFF;
position: relative;
margin: 0px auto;
font-family: "Courier New", Courier, monospace;
background-color: #ffcccc;
}
#menu
{
width: 940px;
padding: 10px;
background-color: #ccffcc;
}
#logo
{
width: 940px;
padding: 10px;
background-color: #ccccff;
}
#leftnav
{
width: 240px;
padding: 10px;
float: left;
background-color: #aaffff;
}
#content-container
{
width: 960px;
}
#content
{
width: 680px;
padding: 10px;
float: left;
background-color: #ffffcc;
}
#content img
{
padding: 0px;
}
#content p
{
padding: 0px;
}
#footer
{
clear: both;
width: 940px;
padding: 10px;
background-color: #ffffff;
}
body {
background-color: #033;
}
</style>
</head>
<body>
<div id="container">
<div id="menu">MENU</div>
<div id="logo">LOGO</div>
<div id="content-container">
<div id= "leftnav">LEFTNAV</div>
<div id="content">
<h1>CONTENT</h1>
<img src="afbeeldingen/honden.jpg" width="394" height="309" /></div>
</div>
<div id="footer">FOOTER</div>
</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>Testsite</title> <style> #container { width: 960px; background-color: #FFF; position: relative; margin: 0px auto; font-family: "Courier New", Courier, monospace; background-color: #ffcccc; } #menu { width: 940px; padding: 10px; background-color: #ccffcc; } #logo { width: 940px; padding: 10px; background-color: #ccccff; } #leftnav { width: 240px; padding: 10px; float: left; background-color: #aaffff; } #content-container { width: 960px; } #content { width: 680px; padding: 10px; float: left; background-color: #ffffcc; } #content img { padding: 0px; } #content p { padding: 0px; } #footer { clear: both; width: 940px; padding: 10px; background-color: #ffffff; } body { background-color: #033; } </style> </head> <body> <div id="container"> <div id="menu">MENU</div> <div id="logo">LOGO</div> <div id="content-container"> <div id= "leftnav">LEFTNAV</div> <div id="content"> <h1>CONTENT</h1> <img src="afbeeldingen/honden.jpg" width="394" height="309" /></div> </div> <div id="footer">FOOTER</div> </div> </body> </html>
|