By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,492 Members | 1,987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,492 IT Pros & Developers. It's quick & easy.

interesting problem Absolute positioning of divs z-index

P: 4
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
  1.  
  2.  
  3. #flashdivcontain
  4. {
  5. width:400px;
  6. height:200;
  7. top:10px;
  8. left:10px;
  9. position:relative;
  10. }
  11.  
  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; 
  20.  
  21. }
Jan 9 '08 #1
Share this Question
Share on Google+
6 Replies


P: 26
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

P: 4
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]
thanks!!
Jan 9 '08 #3

P: 4
still have the same problem....anybody have aannyyy idea??
thanks!!!
Jan 11 '08 #4

P: 32
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

P: 4
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!!
thanks!
Jan 12 '08 #6

P: 32
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>
http://www.webmasterworld.com/forum83/2627.htm

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.