Frank Van Damme wrote:

>An absolute positioned element does not have any influence on its
>siblings or parent. So, if you want the whole to grow, I advise you
>to:
>
>- set the #sidebar float: right; width: 240px;
>- set #content to width:748 px; margin-right: 248px;
>
>or similar. Experiment and enjoy :)
>  
>
Hi,
I did experiment & enjoy! :-)
I found:
- Only adding a float to the sidebar doesn't help in Firefox and other 
real css-standards compliant browsers.
- A "clear" of the floating is needed to get the float(s) within the 
"surrounding" container - because the character of a float has to be: 
escaping from the main flow (IE doesn't).
- When only floating the content, or only floating the sidebar: it 
depends on what is first in the html how (good or wrong) things are 
displayed. If you let the content float, or if you float them both, you 
can put the content (most important part of the page) high in the html - 
is also good for search engines (searching for real content).

For illustrating I made some testpages 
<http://home.tiscali.nl/developerscorner/css-discuss/sidebar-a.htm>.

Greetings,
francky

ps: more and probably better examples are in the WIKI 
<http://css-discuss.incutio.com/?page=TwoColumnLayouts>!
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- 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