Code: Select all
#page-body {
margin: 4px 0;
clear: both;
}
Code: Select all
#page-body {
margin: 4px 0;
clear: both;
overflow: hidden;
to #forumlist
instead of using negative margin for #sidebar
and #sidebarleft
.Code: Select all
<div id="main-content">
<div id="content-wrapper">
<div id="content">content here </div>
</div>
<div id="sidebar-left"> left code </div>
<div id="sidebar-right"> right code </div>
</div>
Code: Select all
#main-content:before, #main-content:after { content: ''; display: table; clear: both; }
#sidebar-left { width: 236px; float: left; }
#sidebar-right { width: 236px; float: right; }
#content-wrapper { width: 100%; float: left; margin: 0 -236px; }
#content { padding: 0 246px; }
@media (max-width: 800px) {
#content-wrapper { margin-right: 0; }
#content { padding-right: 0; }
#sidebar-right { float: none; margin: 0 auto; }
}
@media (max-width: 600px) {
#content-wrapper { margin-left: 0; }
#content { padding-left: 0; }
#sidebar-left { float: none; margin: 0 auto; }
}