Hey, I'm making a website, and have some css to put two divs next to each other.
This is my css and HTML code :
.class1 {
float:left;
border-right:2px solid #000;
}
.class2 {
float:right;
}
.class3 {
clear:both;
}
HTML :
<div class="class1">
Div 1
</div>
<div class="class2">
Div 2
</div>
<div class="class3">
<!-- I'm working in a container div. -->
</div>
At the moment it comes out like this :
Div1 | Div 2
but I want to make it like this :
Div 1 | Div 2
Any ideas how to do this?
This isn't my full code, and I am using valid HTML and CSS.
I have already tried text-align:left; and it didn't work.
Any help welcome.
Thanks, Matthew..