HighDots Forums  

Does <iframe> fence off space from other frames?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Does <iframe> fence off space from other frames? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Beall
 
Posts: n/a

Default Does <iframe> fence off space from other frames? - 03-25-2008 , 06:00 PM






See http://www.adultballet.com.au/AdultBallet.php?Page=Shop

At the bottom of the page is a nav bar. The 2nd, 3rd, and 4th visible
links, when moused over, should pop-up secondary links (via CSS :hover
selectors). This works on all other site pages, but not in the Shop, where
a CafePress shop is contained in an iframe that fills all the space above
the nav bar.

There's lots of use of z-index here. The iframe is zindex 10000 and the nav
links, including the pop-ups are z-index 900000.

The question: Is there something special about an iframe that would prevent
the nav pop-up from entering its space? (If not, I would suspect this is a
z-index problem).

This is not my site. It was left incomplete by one developer and I'm trying
to help the substitute clean it up. [Yes, thanks, I know there is a lot
wrong here; no need to point it all out].

Thanks,
Chris Beall



Reply With Quote
  #2  
Old   
Ben C
 
Posts: n/a

Default Re: Does <iframe> fence off space from other frames? - 03-26-2008 , 03:19 AM






On 2008-03-25, Chris Beall <Chris_Beall (AT) prodigy (DOT) net> wrote:
Quote:
See http://www.adultballet.com.au/AdultBallet.php?Page=Shop

At the bottom of the page is a nav bar. The 2nd, 3rd, and 4th visible
links, when moused over, should pop-up secondary links (via CSS :hover
selectors). This works on all other site pages, but not in the Shop, where
a CafePress shop is contained in an iframe that fills all the space above
the nav bar.

There's lots of use of z-index here. The iframe is zindex 10000 and the nav
links, including the pop-ups are z-index 900000.

The question: Is there something special about an iframe that would prevent
the nav pop-up from entering its space?
No. An iframe should get stacked the same as any other element.

Quote:
(If not, I would suspect this is a z-index problem).
Possibly. Such high z-index values do set off some bogosity alarms.
Remember z-index only applies to positioned elements (set things
to position: relative for fewest side-effects) and that it restacks
only within the local stacking context.

I don't know if either of these is the problem-- they're just the two
most generally surprising things about z-index. The popups don't seem to
be working at all in Firefox.

Quote:
This is not my site. It was left incomplete by one developer and I'm trying
to help the substitute clean it up. [Yes, thanks, I know there is a lot
wrong here; no need to point it all out].

Reply With Quote
  #3  
Old   
Chris Beall
 
Posts: n/a

Default Re: Does <iframe> fence off space from other frames? - 03-26-2008 , 10:31 PM




"Ben C" <spamspam (AT) spam (DOT) eggs> wrote

Quote:
On 2008-03-25, Chris Beall <Chris_Beall (AT) prodigy (DOT) net> wrote:
See http://www.adultballet.com.au/AdultBallet.php?Page=Shop

At the bottom of the page is a nav bar. The 2nd, 3rd, and 4th visible
links, when moused over, should pop-up secondary links (via CSS :hover
selectors). This works on all other site pages, but not in the Shop,
where
a CafePress shop is contained in an iframe that fills all the space
above
the nav bar.

There's lots of use of z-index here. The iframe is zindex 10000 and the
nav
links, including the pop-ups are z-index 900000.

The question: Is there something special about an iframe that would
prevent
the nav pop-up from entering its space?

No. An iframe should get stacked the same as any other element.

(If not, I would suspect this is a z-index problem).

Possibly. Such high z-index values do set off some bogosity alarms.
Remember z-index only applies to positioned elements (set things
to position: relative for fewest side-effects) and that it restacks
only within the local stacking context.

I don't know if either of these is the problem-- they're just the two
most generally surprising things about z-index. The popups don't seem to
be working at all in Firefox.

This is not my site. It was left incomplete by one developer and I'm
trying
to help the substitute clean it up. [Yes, thanks, I know there is a lot
wrong here; no need to point it all out].
Ben,

Thnak you. You have confirmed my suspicions. In any case, it appears the
site owner has decided to start from scratch, which I support.

Chris Beall




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.