|
I see where you fixed it, but for those who struggle with the same problem, here's how to solve it:
HTML:
<div class="block1">Text</div>
<div class="block2">Text</div>
<div class="block3">Text</div>
CSS:
.block1 {
background-color: blue;
height: 50px;
width: 100px;
float: left;
}
.block2 {
background-color: green;
height: 50px;
width: 100px;
float: left;
margin-left: 20px;
}
.block3 {
background-color: red;
height: 50px;
width: 100px;
float: left;
margin-left: 20px;
}
|