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
<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