This is the sidebarLeft div

Here is the code for the sidebarLeft:

#sidebarLeft {
border: 3px solid blue;
width: 200px;
float: left;
/* fix margin collapsing bug in IE 6 */
display: inline;
}

This is the sidebarRight div.

Here is the code for the sidebarRight:

#sidebarRight {
border: 3px solid green;
width: 150px;
float: right;
/* margin collapsing bug in IE */
display: inline;
}

This is the content div.

Because the sidebarLeft and sidebarRight both use the float: attribute, the order that they are on the HTML portion of the page is important. Both sidebars sidebarLeft and sidebarRight must be typed in as content before the content div.

Here is the code for #content:

#content {
/* 206px for left sidebar and borders */
margin-left: 216px;
/* 150 for right sidebar + 6 for borders + 10 spacing */
margin-right: 166px;
border: 3px solid gold;
padding: 5px;
}

Notice how the margins are calculated. Width, borders, margins, and padding must all be added together to determine where one block ends and another should start.