I have the following code for demonstration:
<html>
<head>
<style type="text/css">
a{
display:block;
float:left;
}
#linkDiv{
border-style:solid;
}
</style>
</head>
<body>
<div id="linkDiv">
<a href="">test</a>
<a href="">test</a>
<a href="">test</a>
</div>
</body>
</html>
I want my links to be blocks and also each of them to be next to the other. Without float:left this is what I get:

However when I use float:left this is the result:

thanks in advance
You need a “clearfix” on the parent element:
Or
http://nicolasgallagher.com/micro-clearfix-hack/