Welcome to WebmasterWorld Guest from 54.198.46.95

Forum Moderators: incrediBILL

Message Too Old, No Replies

Positioning a Layer at the bottom of a page...

     
4:36 pm on Aug 9, 2001 (gmt 0)

WebmasterWorld Senior Member nffc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Is there a way to position a layer at the foot of a page without knowing how long the page is?
6:41 am on Aug 10, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



How about this: NEST the "footerlayer" div within the page's "footer" div. Declare the footer div to be position:relative, so its position flows in relation to the entire page's body. Then declare the nested div (the footerlayer) as position:absolute, top:0px and left:0px.

Because the layer is nested within a relatively positioned div, its absolute coordinates will be measured in relation to its containing block the footer div. The code would be structured something like this:

CSS:
#body {color:#000000}
#footer {position:relative}
#footerlayer {position:absolute;left:0px;top:0px;z-index:2}

HTML:
<div id="bodycopy>
All the body copy goes here.
</div>

<div id="footer">
This is the footer.
<div id="footerlayer">
This is the footer layer.
</div>
</div>

GWJ

11:52 am on Aug 10, 2001 (gmt 0)



Niave question, I am sure, but why not just call an SS include at the end of the page? Wouldn't that have the same effect but be more cross browser compatible?

Brian

11:59 am on Aug 10, 2001 (gmt 0)

WebmasterWorld Senior Member nffc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



>Niave

No, just my poor initial question. :)

I want the text contained in the layer to appear at the top of the source but display at the bottom of the page.

12:29 pm on Aug 10, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't think so, at least not yet.

I've read about a consideration for CSS3 that would create the property position:relative-to. Now that would handle it, but it's obviously a few years away, if ever.

1:46 pm on Aug 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Something to keep in mind is that even though you can see through layers and overlap them you will not be able to use hyperlinks beneath layers even if they are visible ( as in side navigation bars)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month