How to create 2 div boxes side by side?

Hello,

How to create the following using css and div ?

<table border="1" align="center">
<tr>
      <td width="565">something</td>
      <td width="300">something</td>
</tr>
</table>

Thanks.

Just use floats :slight_smile:


<div id="wrapper">
  <div class="content">something</div>
  <div class="sidebar">something</div>
</div>
...

#wrapper
{
  width:865px;
  overflow:hidden;
  border:1px solid #000;
  margin:0 auto;
}
.sidebar
{
  float:left;
  width:365px;
  background:red;
}
.content
{
  float:left;
  width:500px;
  background:blue;
}