[Pro] Box Model Alternative

Hopefully I am missing that there is a simpler way to create a footer that spans the entire browser window, always pushed to the bottom of the page by the content above it, without having to create a full box model layout.

While I love FW and its master page metaphor, box models are a PITA and break too many features. Having to resort to one for such a common web design element is a real drag.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Solutions Etc.

I posted a fairly depth answer with example file suing 5.5s new RPL Action to a similar question a short while back:

http://freewaytalk.net/thread/view/75369#m_75371

Hope it helps,

Joe

On 5 Oct 2010, at 14:18, Solutions Etcetera wrote:

Hopefully I am missing that there is a simpler way to create a footer that spans the entire browser window, always pushed to the bottom of the page by the content above it, without having to create a full box model layout.

While I love FW and its master page metaphor, box models are a PITA and break too many features. Having to resort to one for such a common web design element is a real drag.


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

Thank you Joe…

But I am afraid I am not having a good day. Your solution seemed a very good one, and after quite a few hours of re-laying out my site to this model I have once again hit a wall.

I created a master page with the three inline divs for header, body and footer, along with inline divs inside those for content.

I then created a floating div for my css menu bar which sits atop everything near the top of the page. The whole purpose of this is to allow me to make changes to my menubar and keeping the master settings across all of the pages.

This looked like it was going to work until I created all of the pages to link to the menubar, only to find that the sub-menus are drawing in back of the content in the inline “body” div.

Freeway shows my menu at the bottom of the item list so I am assuming it is on top but that doesn’t seem to be the case. I have selected the menu on the master and selected bring to front but the results are still the same.

A solution would be very much appreciated.

Thanks!

-ss


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

After looking at the code, I see that a z-index of 1 is being assigned to the menu div… I guess because FW is oblivious to any other divs used in the inline model.

Setting the z-index attribute of the menu div manually to 99 seems to have made things happy.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah great - not sure what was happening, I just tried it in my sample file and it seems to work fine (file updated too):

http://users.softpress.com/joe/flexi/

Joe

On 5 Oct 2010, at 21:48, Solutions Etcetera wrote:

After looking at the code, I see that a z-index of 1 is being assigned to the menu div… I guess because FW is oblivious to any other divs used in the inline model.

Setting the z-index attribute of the menu div manually to 99 seems to have made things happy.


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

Your sample file does not have a menu that is a free floating layer (it is within your header div) so its z-index is being set higher than 1.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You may find that sending the div to the front fixes your problem then. If not, the forced z-index does the job.

Joe

On 5 Oct 2010, at 22:15, Solutions Etcetera wrote:

Your sample file does not have a menu that is a free floating layer (it is within your header div) so its z-index is being set higher than 1.


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

Well… that was my point. Freeway’s code does not seem to be cognizant of the other divs in this kind of layout model - so even after bringing it to front, FW continued to write code with a 1 based index.

My guess is that divs that are inline are all indexed 1… and any floating divs on top also start out at 1.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Inflow divs have no z-index, which is equal to a z-index of 0.

On 5 Oct 2010, at 22:34, Solutions Etcetera wrote:

Well… that was my point. Freeway’s code does not seem to be cognizant of the other divs in this kind of layout model - so even after bringing it to front, FW continued to write code with a 1 based index.

My guess is that divs that are inline are all indexed 1… and any floating divs on top also start out at 1.


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

Perhaps I am not making myself all that clear. In your model above, you have the basic box model with in flow divs, and then recommend placing layered elements within them, using the relative page layout action to manage their size and position. The first one of these in each inflow div is going to have an index of 1, the second of 2, etc.

Placing a floating div on the page above any of these (not inside any other element) is also going to start with an index of 1… so you may see unexpected results with layers unless you manually apply an index for the floating layers.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Child elements start at Z:1, but that’s 1 relative to their nearest parent. Of that parent is at z:29, then that’s going to be higher than another element which is a child of the page and is at z:20.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I guess a picture’s worth a thousand words:

http://supercard.us/yuk/index.html

There is one html element in the inline body element (inside, but not inline with blue area). The menu element is a layer on top of the entire page. As FW outputs the code, both have a z-index of 1. The menu is clearly behind the element in the body.

http://supercard.us/yuk/index2.html

The above page is identical with the exception of forcing the z-index of the “menu2” div to 99.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I can’t see your example pages at the moment (all I get is a 404 page)
but you may find a solution in this thread from earlier this year;
http://freewaytalk.net/thread/view/64657#m_64657
Regards,
Tim.

On 6 Oct 2010, at 01:54, Solutions Etcetera wrote:

I guess a picture’s worth a thousand words:

http://supercard.us/yuk/index.html

There is one html element in the inline body element (inside, but
not inline with blue area). The menu element is a layer on top of
the entire page. As FW outputs the code, both have a z-index of 1.
The menu is clearly behind the element in the body.

http://supercard.us/yuk/index2.html

The above page is identical with the exception of forcing the z-
index of the “menu2” div to 99.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry… those urls should have been:

http://solutionsetcetera.com/yuk/index.html

http://solutionsetcetera.com/yuk/index2.html

Copy and paste can be a dangerous thing.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options