use this css you can change margin as per your requirement
#sidebar
{
width:300px;
background-color:#000;
float:left;
height : auto;
}
#mainarea
{
width:700px;
background-color:#C30;
float:left;
margin:10px;
}
if you like this than pls appreciate and always help others from your knowledge.