Avalanched
Legacy Member
men 2 bloken willen niet verticaal centeren
dit is het voorbeeld
HTML BESTAND
CSS bestand
dit is het voorbeeld
HTML BESTAND
HTML:
<html>
<head>
<title>test</title>
<link href="xxxy.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="header"></div>
<div id="block-1">
</div>
<div id="block-2">
</div>
</div>
</body>
</html>
CSS bestand
Code:
body
{
background-color:#000000;
text-align:center;
}
#container
{
text-align:center;
}
#header
{
height: 100px;
}
#block-1
{
background-color:#FFFFFF;
float:left;
text-align:left;
height: 500px;
width:500px;
}
#block-2
{
float:left;
margin-left: 5px;
background-color:#FFFFFF;
height: 200px;
width: 200px;
}

