a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

another absolute positioning question...

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> another absolute positioning question...
Page: [1]
 
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
another absolute positioning question... - 10/29/2005 9:54:47   
I am working on a banner template and am using CSS to position 'pop-up' images when links are hovered over. My page layout is a fixed width, when the layout is left aligned getting the images to the correct position is no problem, but... I want to center the layout. Of course once I do this then the positioning of the pop-up images becomes entirely unpredictable...

So, is it possible to set a css positioning rule to take its measurement from say the top left side of a containing table/div/whatever instead of from the top left corner of the screen?

Does that make sense? - if needs be I can upload the page but I trust you get what I'm asking...

_____________________________

Regards, Rick
On-The-Web-Now!
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: another absolute positioning question... - 10/29/2005 10:20:33   
The element that you are positioning absolutely will take it's references from the <div> that contains it (although IE 5 sometimes mucks this up).

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: another absolute positioning question... - 10/29/2005 12:57:09   
Ah yes, but on this occassion the image is being positioned by hovering on the a:link - I don't want it to take reference from the anchor text as there are various links all in different positions and besides, if someone resized the text that would scupper it anyway.

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to Tailslide)
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: another absolute positioning question... - 10/29/2005 13:29:10   
When I've seen this done (Eric Meyer) he gave every popup a position in relation to the containing div - and yes, if you resize it the way he did it, it breaks - but you could in theory position it so it doesn't.

_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: another absolute positioning question... - 10/29/2005 14:51:33   
Indeed - that is the site I went to when looking for help - help it did:). This is my effort so far (please ignore the aesthetics at this stage!). But now I just need to figure out how to make it work as a centred layout (!?):)


Ooh, Ooh, I just thought of one simple solution... it works but causes a bit of a constraint on the images used/the layout, but... here it is - I simply set the now relative position to 50% - ignore the presently squished up images but this is at least one way

EDIT AGAIN! - Ah, just tried it on IE5 and it's disastrous:)

< Message edited by RickP -- 10/29/2005 15:22:08 >


_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to Tailslide)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> another absolute positioning question...
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts