I´m working on a pure CSS Design for s9y without tables und approched a tough problem: I can't get the content area right.
This is my basic css-design:
Code: Select all
<div id="container">
<div id="header">
header
</div>
<div id="main">
<div id="content">
{$CONTENT}
</div>
<div id="sidebar">
sidebar{serendipity_printSidebar side="right"}
</div
</div>
<div id="footer">
footer
</div>
</div id="container">
Code: Select all
#main { float: left; width: 902px; }
#content { float: left; width: 455px; /* 555px */ padding-left: 80px; padding-right: 20px; }
#sidebar { float: right; width: 217px; /* 347 */ padding-left: 30px; padding-right: 100px; }
When I substitute {$content} with some sample lorem ipsum text, everthing is displayed right. And if I put the {$content} in a table like this: <table><tr><td>{$CONTENT}</td></tr></table> it is displayed correct, too. But I want no table.
How do I fix this?
Is there some other place than the templates style.css where styles are defined?
Regards
Ansgar