When you float the sidebar it takes it out of the flow of the page so the
<div id="content"> will span the entire page or wrapper, if used. If you
give your content a margin of 200px it will leave that space open for the
sidebar.

Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Bicknell
Sent: Tuesday, November 28, 2006 9:35 AM
To: css-d@lists.css-discuss.org
Subject: [css-d] Mixing % width and pixel width

I want to create a site with a sidebar div {width:200px; float: 
left;} rule and a content div that stretches to fill the remaining space and
that centers the content within that remaining space.

When I specify a percentage width for the content div it behaves as if the
floated div is not there. When I remove the float rule from the sidebar div,
the content div sits below, rather than to the right of the sidebar div.

Am I missing something, or do I need to redesign the site? Any thoughts
would be appreciated.
--
Scott
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org --
http://www.evolt.org/help_support_evolt/


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to