Forum Moderators: not2easy
However, I'm using a CMS and in this case, it is spitting out block level elements using a template so I can't name each block individually. Does anyone know how I can get these to appear side by side rather than one of top of the next?
#maincontent {
width: 462px;
margin-left: 180px;
margin-right: 200px;
background-color: yellow;
}
#maincontent p {
padding-bottom: 10px;
}
#footer {
margin-top: 20px;
clear: both;
background-color:#575352;
padding: 0px 5px 0px 5px;
}
#maincontent {1px 0;}
When you use clear: both; on a "footer" in IE it clears enough to clear the columns but it also clears the last <p> bottom margin in these columns (actually it would apply to any element that had a bottom margin on it - collapsing margins - but anyway), using padding, or a border, on the content div should be enough to contain the margins inside the content element - as it should stop the margins collapsing outside the element, so letting the clear:both; of the footer work on the divs boundaries.
It may be that a wrapper would help clarify this situation but let us know what happens in this first instance
Suzy