This is a discussion on "Layer positioning" within the Web Page Design section. This forum, and the thread "Layer positioning are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Layer positioning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I am trying to design a webpage where all the content is contained within a single 'top-level' Layer. Other elements of the page are contained within other Layers that are nested within this 'top-level' Layer.
My problem is that I want a footer (contained in its very own layer) which I need to be positioned relative to the bottom of the 'top-level' Layer (so the bottom edge of the footer layer is coincident with the bottom edge of the 'top-level' layer) - so when I change the height of the top-level layer (to give longer webpage) the footer level stays at the bottom of the page. Hope everyone understood that! I've tried, but I can't quite pull if off. Could someone please let me have the CSS definition for the footer layer in this case, puleeze? |
|
|
|
#2
|
|||
|
|||
|
Re: Layer positioning
You should be able to add this to your footer css:
#footer { clear: both; } If that doesn't work, add a new <div class="clear"></div> right above the footer div. Your css would be the same as above .clear { clear: both; } |
|
#3
|
||||
|
||||
|
Re: Layer positioning
Yeah, if clear doesn't work, post a link up to your page so we can have a looksy. Lchad's advice will work if you're using floats to acheive the columns. If you're using positioning for the columns it'll be a different story.
|
![]() |
| Tags |
| div |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Layer Change | rattlesnak | Web Page Design | 2 | Jan 25th, 2008 12:07 |
| help need to add a layer in php ect | rubyk9 | PHP Forum | 1 | Sep 1st, 2007 22:58 |
| Positioning the layer (Div tag) compatible | mrunclesam | Web Page Design | 12 | Dec 18th, 2006 11:43 |
| Positioning a Div Layer | escaflowne11 | Web Page Design | 6 | Oct 6th, 2006 22:45 |
| Hidding a layer? | Jorgerb | Flash & Multimedia Forum | 7 | Apr 10th, 2005 08:48 |