No, you’re not doing anything wrong at all. The issue is that if you set the position of an element to be bottom: 0, you have to consider “bottom of what?” to understand what you see. In Freeway 5.5, in a page with all positioned elements, bottom: 0 is going to be bottom of the PageDiv, which is set to height 100% by default. All positioned elements are children of that element, but absolutely positioned elements do not reserve space for themselves within their parent element. So that parent element does not grow or shrink with its children. So what is 100% of in the case of the PageDiv? Well, it’s a direct child of the body tag, and in turn the html tag (mother of all tags). Both of those are set to 100% height also. So what are they in turn 100% of? The window.
So I just went through this in Freeway, and here again in prose, to figure out precisely what you might see. In my case, a 1.390px “tall” page (I say “tall” in scare-quotes because that’s just the amount of workspace reserved in Freeway, nothing in the published code will own up to that value) and an element at the bottom of that page (in Freeway) with its bottom position set to 0 and its top allowed to float, shows me that element pinned to the bottom of the screen, and other elements I positioned further down the page in Freeway floating over it. But unlike the Fixed in Window positioning, where that pinned element remains at the bottom of the screen, in this case the bottom element scrolls up with the rest of the page.
So if you parsed through my tortured explanation in the first paragraph above, you’ll see that while this isn’t what we want, it is entirely predictable. The 0-bottom element is at the bottom of the nearest positioned parent element, which is by default 100% of the height of the browser window. Even though its children stick out of it below the “fold”, those elements are positioned relative to that parent. Since the children do not affect the height of the parent in an absolutely positioned layout, there’s no conflict with the browser’s version of reality. You are getting what you asked for.
Walter
On Feb 5, 2013, at 12:28 PM, John Cooper wrote:
Sorry, Walter, I didn’t mean in Page mode where I’d expect it to be at the bottom of the window. I meant it still sticks to the bottom of the browser (and not the page) when Preview or Preview in Browser is used. Or am I doing something wrong?
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options