This is a discussion on "CSS Challenge... absolute AND relative positionning" within the Web Page Design section. This forum, and the thread "CSS Challenge... absolute AND relative positionning are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Challenge... absolute AND relative positionning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi everyone. I'm new to this beautiful forum.
I have a very hard challenge to overcome. I'm working on a web portal, with columns. I have a column on the right, separated in 3 sections, one under the other. All these sections must be scalable with the text. At the bottom of the 1st section, i must have div that contains a flash animation with a transparent background. This div is positionned over everything because the flash overflows the website design. What I have to do is make sure this div is always aligned to the bottom of the section, mo matter what happens. Ok now I'll summarize what I just said :P I have an absolute DIV that must always be aligned with the bottom of one div that's in a column. This must be done without using PHP or Javascript. I tried to put an absolute div nested within a relative div, but it didn't work, it aligned to the bottom of the page. I hope I was clear with the statement of my problem. Can anyone help? (I just added a visual example...) Last edited by Trollivier; Feb 6th, 2007 at 20:47. Reason: added a visual example to help understand the problem |
|
|
|
#2
|
|||
|
|||
|
Re: CSS Challenge... absolute AND relative positionning
Sorry I don't see why this is a problem? Just put it in the right order in your code.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: CSS Challenge... absolute AND relative positionning
Hmm because it has to be positioned over the columns borders, and a little over the next section's header.
To my knowledge, a relative div can't be positionned over the ones positioned over or under them, can they? |
|
#4
|
||||
|
||||
|
Re: CSS Challenge... absolute AND relative positionning
The property z-index is what you need
|
|
#5
|
|||
|
|||
|
Re: CSS Challenge... absolute AND relative positionning
Yeah if you want to stack them then listen to Ryan.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: CSS Challenge... absolute AND relative positionning
This problem has been solved
The float box needed to be "position: relative" so the other absolute box inside it would follow the bottom. Without the position:relative, the absolute box was always at the bottom of the page, rather that at the bottom of it's parent. |
![]() |
| Tags |
| vertical, relative, css, align, absolute |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Absolute Div, wrapped in Relative Div (IE6 - AARRRGGHH) | tenderfoot | Web Page Design | 3 | Feb 7th, 2008 18:43 |
| positioning - relative or absolute? | Web Page Design | 13 | Nov 8th, 2007 16:00 | |
| loadMovie function (and absolute/relative URL's) | DocBoy52 | Flash & Multimedia Forum | 1 | Aug 26th, 2006 05:16 |
| Anyone up for a CSS challenge? | bob_visualefx | Web Page Design | 7 | Apr 7th, 2006 14:30 |