- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Sat, 26 Jun 2004 09:50:13 -0700
- To: "Justin Wood" <jw6057@bacon.qcc.mass.edu>, "W3C Style List" <www-style@w3.org>
1) As far as I understand David wants "flexible" layouts. Yours is not flexible. 2) "Float" designed for placing some blocks "inside" the text wrapping them. To use them for such layout purposes - to make the same mistake as for using tables for that. Again in pure CSS1/2.1 there is no way currently to make a layout like this: |<--fixed-->|<--flexible-->|<--fixed-->| (except of using hacks(e.g. struts) in tables) Andrew Fedoniouk. http://terrainformatica.com > Justin Wood: > Sorry Andrew, but I think he was looking for a full compliant. > > from memory only, and not trying: > > enclose all main content in <div id="main_body"> (for my example) > left-sidebar <div id="left_sidebar"> and right sidebar <div > id="right_sidebar"> > > now these would be all at the same *scope* as far as child/parent nodes > are concerned. > > #main_body { > //nearly any style > } > > #left_sidebar { > float: left; > width: //reasonable > } > > #right_sidebar { > float: right; > width: //reasonable > } > > something like that should work, as long as all three are on the same > scope, (if my tired mind still working right now) then they will float > at the top of content in all cases. only warning is that they will > cause content reflow, and a UA which does progressive rendering of the > page (most if not all) and has some trouble when a reflow is caused > without Scripting code, this may be a slight issue for them. >
Received on Saturday, 26 June 2004 12:50:56 UTC