Results 1 to 3 of 3

Thread: CSS clashes with iframe

  1. #1
    Join Date
    Jul 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS clashes with iframe

    I have installed a number of the different CSS or javascript drop down menus from dd on my website (... only one at a time, of course!). But when I open something like an excel spreadsheet or powerpoint inside my webpage (using an iframe or something like that), the drop down menu is hidden underneath the content whenever a sub-menu "drops down".

    Regardless of what my z-index may be, the powerpoint, spreadsheet, or explorer window being displayed in the iframe is always on top of the menu items. Can someone help me solve this and get the menu to always be on top of anything loaded in the iframe?

    The iframe and CSS menu play together nicely as long as the iframe has HTML content in it (ie - the CSS menu is on top of the iframe). However, as soon as non-HTML content (such as a windows directory, an excel file, or a power point file) are loaded in the iframe, then the CSS menu is hidden underneath the iframe.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    If you are you "position:absolute" with put you menu code below the iframe (i'm not positive this will work)

    Code:
    <div>Menu header</div>
    <iframe src="whatever">
    <div style="position:absulute...">
    Menu here
    </div>
    Not sure, though, if this will work.
    - Mike

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Unfortunately, there's not really a way around this. Of course, you shouldn't really be relying on non-web content being displayed by a plugin anyway...
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •