CSS Challenge... absolute AND relative positionning

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 6th, 2007, 20:36
New Member
Join Date: Feb 2007
Location: Montreal
Age: 29
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation CSS Challenge... absolute AND relative positionning

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...)
Attached Images
File Type: jpg example.jpg (36.6 KB, 123 views)

Last edited by Trollivier; Feb 6th, 2007 at 20:47. Reason: added a visual example to help understand the problem
Reply With Quote

  #2 (permalink)  
Old Feb 6th, 2007, 21:12
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,649
Thanks: 0
Thanked 7 Times in 7 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
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.
__________________
I've got <style> and .class
Reply With Quote
  #3 (permalink)  
Old Feb 6th, 2007, 21:14
New Member
Join Date: Feb 2007
Location: Montreal
Age: 29
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #4 (permalink)  
Old Feb 6th, 2007, 22:43
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Challenge... absolute AND relative positionning

The property z-index is what you need
Reply With Quote
  #5 (permalink)  
Old Feb 9th, 2007, 15:45
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,649
Thanks: 0
Thanked 7 Times in 7 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: CSS Challenge... absolute AND relative positionning

Yeah if you want to stack them then listen to Ryan.
__________________
I've got <style> and .class
Reply With Quote
  #6 (permalink)  
Old Feb 9th, 2007, 16:41
New Member
Join Date: Feb 2007
Location: Montreal
Age: 29
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
vertical, relative, css, align, absolute

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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? google 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


All times are GMT. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43