467,910 Members | 1,753 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

interesting problem Absolute positioning of divs z-index

Problem overcap:
on this website there is a DHTML dropdown menu (ul style), and right below some of the menu is a flash video, and the issue is getting the dropdowns to show and STAY over the flash. I used WMODE and that works fine in most browsers (except IE for mac), so tried making a dive around the flash and z-indexing it and this also works but only when positioned ABSOLUTE! however, when i wrapped it with a relative div to keep it in place, but then z-index doesnt work with relative on IE5.2.
so i need some idea to somehow make this wrapper absolute positioned but then something to hold it in place without overriding it.
here the css
Expand|Select|Wrap|Line Numbers
  3. #flashdivcontain
  4. {
  5. width:400px;
  6. height:200;
  7. top:10px;
  8. left:10px;
  9. position:relative;
  10. }
  12. #flashcontain {
  13.     border: 0px solid #333;
  14.     width: 200px;
  15.     height:200;
  16.     position: absolute !important;
  17.     top: 45px;
  18.     left: 50px;
  19.     z-index: 2 !important; 
  21. }
Jan 9 '08 #1
  • viewed: 1657
6 Replies
For starters #flashdivcontain needs to have a lower z-index too, it doesn't make any sense or just the child to have a reduced z-index, since moving a child's z-index never matters.

However since its a bug and not a real css problem, that probably won't fix anything. If you would like another idea of how to position the flash using absolute besides what you already tried, I would need to see the site and the html. Or else I guess I misunderstood your question.
Jan 9 '08 #2
yes, it seems the z-index command will not work for relative in IE ....so i cant use it :( so basically im looking for some way to anchor the absolute div.
page is [HTML]http://www.gustavson.com/new/index4.htm[/HTML]
Jan 9 '08 #3
still have the same problem....anybody have aannyyy idea??
Jan 11 '08 #4
Personally I wouldn't spend that much time supporting IE mac, its market share is so low,and the browser so old that frankly its not worth it.

We generally build to only support IE6, IE7, FF 1.5+, Opera 7+ & Safari
IE6 support is also graded, so if feature is not supported we simply enhance for better browsers and support basic functionality and ignore the inevitable ugly-ness in ie6.

In this case I would recommend targeting ie5mac with either conditional comments or stylesheet hacks :( and simply hide content it cannot display, or replace with an image.
Jan 12 '08 #5
Unfortunately i HAVE to make it work for a picky client :(

any advise on css hacks?? i think having something to recognize old IE and show another style sheet would be ideal but is out of my leugue and i have no idea where to start....so any more info would most helpfull and appreciated!!
Jan 12 '08 #6
I would just tell the client that the browser is 8 years old and get over it personally, If its good enough for yahoo (to not support it) its good enough for the rest of the world too.

googling "target ie5mac" gave me this stylesheet hack
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2. \/*
  3. @import("stylesheet.css");
  4. */
  5. </style>

Which is ugly, but should suit your purpose.

Alternatively you can target specific versions of IE but not mac/win with IE conditional comments.
My personal favourite.
Here are all the permutations I use, ripped straight from the textmate HTML bundle.
[HTML]<!--[if IE 5.0]> IE Conditional Comment: Internet Explorer 5.0 only <![endif]-->[/HTML]

[HTML]<!--[if IE 5.5]> IE Conditional Comment: Internet Explorer 5.5 only <![endif]-->[/HTML]

[HTML]<!--[if lt IE 6]> IE Conditional Comment: Internet Explorer 5.x <![endif]-->[/HTML]

[HTML]<!--[if lte IE 6]> IE Conditional Comment: Internet Explorer 6 and below <![endif]-->[/HTML]

[HTML]<!--[if IE 6]> IE Conditional Comment: Internet Explorer 6 only <![endif]-->[/HTML]

[HTML]<!--[if gte IE 7]> IE Conditional Comment: Internet Explorer 7 and above <![endif]-->[/HTML]

[HTML]<!--[if IE]> IE Conditional Comment: Internet Explorer <![endif]--> [/HTML]

[HTML]<!--[if !IE]><!--> IE Conditional Comment: NOT Internet Explorer <!-- <![endif]-->[/HTML]
Jan 14 '08 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Ken Kast | last post: by
5 posts views Thread by Duane Lambe | last post: by
1 post views Thread by Siegfried Heintze | last post: by
14 posts views Thread by Fistro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.