Beste CP leden,
Ik heb het toch nog maar eens geprobeerd om het element "DIV" onder de knie te krijgen,
Voor mijn gevoel gaat dit redelijk dankzij een goede tutorial online,
Ik zit nu alleen nog met een probleem,
de layout wordt momenteel links op de site uitgelijnd, maar ik zou deze graag in het midden zien.
Zonder dit met het "CENTER" element te moeten doen. (door dit boven de site en onder de site te plaatsen)
Hoe kan ik dit dus netjes doen d.m.v. CSS?
(CSS staat normaal appart, maar voor het gemak hier even in het script gezet.
Mijn huidige code/layout
PHP
<html>
<head>
<title>Layout</title>
<style type="text/css">
<!--
body {
margin: 0px;
padding: 0px;
}
#header {
background: #0f0;
float: left;
width: 650px;
height: 100px;
}
#rightcol {
background: #f00;
float: left;
width: 250px;
height: 100px;
}
#leftcol {
background: #f00;
float: left;
width: 250px;
}
#content {
background: #fff;
float: left;
width: 650px;
}
#footer {
background: #0f0;
width: 900px;
height: 25px;
}
#wrapper {
background: black;
clear: both;
width: 900px;
height: 0px;
}
-->
</style>
</head>
<body>
<div id="header">Header Section</div>
<div id="rightcol">Header right Section</div>
<div id="wrapper"></div>
<div id="leftcol">Left Section</div>
<div id="content">Index</div>
<div id="wrapper"></div>
<div id="footer">Footer Section</div>
</body>
</html>
</body>
</html>
Toon Meer