Re: [WSG] But why didn't Eric use positioning
Patrick H. Lauke wrote: The same happens when you use floats inside a container: if you don't have something as the last item of the container to clear them, the container will collapse. That's not always true. If the container is also floated, it DOES expand to contain child floats. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] But why didn't Eric use positioning
On Oct 5, 2005, at 3:06 AM, Donna Maurer wrote: The challenge was: * three columns of content * no guarantee which would be longer * vertical lines between them * a footer that spanned the full width of the screen As part of the decision, he was discussing whether he would use absolute positioning or floats for the columns. I remember him saying that he couldn't use absolute positioning because he wouldn't know which column was longest. ... I understand this is hard because you don't know which column to use as a reference for the footer positioning. But couldn't you wrap the three columns in an relatively positioned div and position the footer relative the the whole thing? The problem is that absolutely positioned elements are removed from the flow. They "take up no space" as far as the rest of the page is concerned, and so that relatively positioned wrapper div you invoke would only be as tall as the tallest non-absolutely-positioned element it contains. Then your footer would be positioned at the bottom of that, with the absolutely positioned elements flowing over (or under) it. -- Ben Curtis : webwright bivia : a personal web studio http://www.bivia.com v: (818) 507-6613 ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] But why didn't Eric use positioning
Thanks, now I remember how it works! I have used positioning before (it is on my current site), but do find it a bit tricky to think around! Feeling silly... Donna On 5 Oct 2005 at 11:23, Patrick H. Lauke wrote: > Donna Maurer wrote: > > When you position something absolutely, you remove it from the normal > document flow. This means that no matter how long the individual columns > are, they will not "push" the height of the container at all. In the > worst case, if all you'd have in that container is absolutely positioned > columns, the container will collapse to a height of zero. > > The same happens when you use floats inside a container: if you don't > have something as the last item of the container to clear them, the > container will collapse. > > -- > Patrick H. Lauke -- Donna Maurer Maadmob Interaction Design e: [EMAIL PROTECTED] work: http://maadmob.com.au/ blog: http://maadmob.net/donna/blog/ AOL IM: maadmob ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] But why didn't Eric use positioning
Donna Maurer wrote: This is where I lost the point... I understand this is hard because you don't know which column to use as a reference for the footer positioning. But couldn't you wrap the three columns in an relatively positioned div and position the footer relative the the whole thing? When you position something absolutely, you remove it from the normal document flow. This means that no matter how long the individual columns are, they will not "push" the height of the container at all. In the worst case, if all you'd have in that container is absolutely positioned columns, the container will collapse to a height of zero. The same happens when you use floats inside a container: if you don't have something as the last item of the container to clear them, the container will collapse. -- Patrick H. Lauke __ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com __ Web Standards Project (WaSP) Accessibility Task Force http://webstandards.org/ __ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
[WSG] But why didn't Eric use positioning
Hi guys Sorry this is a WE05 specific question... In Eric Meyer's presentation at WE05, he talked through the decision-making process of constructing AListApart. It was a good presentation, but lost me at one point. The challenge was: * three columns of content * no guarantee which would be longer * vertical lines between them * a footer that spanned the full width of the screen As part of the decision, he was discussing whether he would use absolute positioning or floats for the columns. I remember him saying that he couldn't use absolute positioning because he wouldn't know which column was longest. This is where I lost the point... I understand this is hard because you don't know which column to use as a reference for the footer positioning. But couldn't you wrap the three columns in an relatively positioned div and position the footer relative the the whole thing? Is the problem just that he didn't want to mess the markup with an irrelevant div? I didn't want to ask him about something so trivial when I met him later, so talked about children instead... Thanks Donna -- Donna Maurer Maadmob Interaction Design e: [EMAIL PROTECTED] work: http://maadmob.com.au/ blog: http://maadmob.net/donna/blog/ AOL IM: maadmob ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **