Log in

View Full Version : how to do boxes in the same line?



toplisek
05-17-2007, 01:14 PM
I have code for boxes for left and right. Code is the following:
<div id="leftbox">

</div>


<div id="rightbox">

</div>

and css like:


#left{
float: left;
width: 256px;
text-align: center;
border-width: 1px;
border-style: solid;
}

#right{
width: 256px;
border-width: 1px;
border-style: solid;
margin-left: 280px;
}



How to put in the same line as now it is right box under left but wuth padding

Spiritvn
05-17-2007, 03:24 PM
http://www.dynamicdrive.com/forums/showthread.php?t=20847

had replied ur question here