I am trying to float something to the right but it doesn't work as it should. I am trying to get something like eu-accounts.com > right banner with the Classes.
This is what I've got now
<!DOCTYPE HTML>
<html>
<head>
<title> Haltqt - Accounts </title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="banner">
</div>
<div id="content">
hier komt content
<div id="product">
Products will come here
</div>
</div>
<div id="classen"> hier komen de classes
</div>
</body>
<footer> © Haltqt-accounts.com </footer>
</html>
and the css:
* {
margin: 0;
}
html, body {
height: 100%;
}
#banner {
margin:0px;
padding:0px;
width:100%;
height:300px;
background-color:#000; /* deze staat nu op zwart, dit is de banner. dit moeten we op transparant zetten en in de body een wallpaper als achtergrond om het effect te krijgen van eu-accounts.com*/
}
#content {
margin: 0 auto;
padding:0;
width: 70%;
background-color:yellow;
}
footer{
margin: 0 auto;
padding:0;
width: 70%;
text-align:center;
}
#classen {
width:15%;
margin:0 auto;
padding:0;
float:right;
background-color:red;
}
#product {
margin:5px;
padding:5px;
}
Could you take a look why the class classen is not floating correctly? Thanks.