Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old February 6th, 2007, 04:36 PM   #1
New Member
 

Join Date: Feb 2007
Location: Montreal
Age: 31
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Trollivier is on a distinguished road
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; February 6th, 2007 at 04:47 PM.. Reason: added a visual example to help understand the problem
Trollivier is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2007, 05:12 PM   #2
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
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.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2007, 05:14 PM   #3
New Member
 

Join Date: Feb 2007
Location: Montreal
Age: 31
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Trollivier is on a distinguished road
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?
Trollivier is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 6th, 2007, 06:43 PM   #4
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: CSS Challenge... absolute AND relative positionning

The property z-index is what you need
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 9th, 2007, 11:45 AM   #5
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: CSS Challenge... absolute AND relative positionning

Yeah if you want to stack them then listen to Ryan.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old February 9th, 2007, 12:41 PM   #6
New Member
 

Join Date: Feb 2007
Location: Montreal
Age: 31
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Trollivier is on a distinguished road
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.
Trollivier is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
vertical , relative , css , align , absolute


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 3 February 7th, 2008 02:43 PM
positioning - relative or absolute? google HTML, XHTML and CSS 13 November 8th, 2007 12:00 PM
loadMovie function (and absolute/relative URL's) DocBoy52 Flash and ActionScript 1 August 26th, 2006 01:16 AM
Anyone up for a CSS challenge? bob_visualefx HTML, XHTML and CSS 7 April 7th, 2006 10:30 AM


Search Engine Optimization by vBSEO 3.2.0 RC8