Creating floating sidebars with a content area in the middle CSS
I am having trouble getting my basic layout to work. I am new at HTML and CSS. How can I attain a 3 column setup on my website to allow for proper placing of ads along the sides?
I currently have 2 floating sidebars left and right and one content area that is not floating but there seems to be an invisible margin between the content area and the side bars.
You need to center the middle column.
Aside from that, your calculations are a bit off because of the borders.
You could use
box-sizing:border-box in order to include the element’s border within it’s dimension calculations. Most people just apply this property to all elements:
You would otherwise need to include this on the individual elements.