How to put two divs on the same line

Taz

Seasoned Veteran
Joined
Mar 1, 2009
Messages
3,652
Reaction score
2
FP$
1,032
I need to know how to put a certain two divs on the same line. The code is for something I am working on so could you please pm me if you can help, thanks in advance.
 
Code:
.div1 {
float: left;
position: absolute;
}

.div2 {
float: right;
position: absolute;
}

<div class="div1">&nbsp;</div><div class="div2">&nbsp;</div>
 
EDIT:

Nevermind, I fixed it.
I put "position:absolute;" on the second div and it worked.
 
Back
Top Bottom