473,378 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
  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
6 1812
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]
thanks!!
Jan 9 '08 #3
still have the same problem....anybody have aannyyy idea??
thanks!!!
Jan 11 '08 #4
garrow
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
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
garrow
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

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

Similar topics

4
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I...
5
by: Duane Lambe | last post by:
On some suggestions from this group, I've started to turn my internal helpdesky site for our company to non-absolute positioning. I've been reading O'Reilly's CSS book, and several web sites and...
4
by: wls | last post by:
I've got a problem that requires rendering DIVs at different offset locations, and while I've got a solution that works, the absolute positioning is working to the client window, not to the parent...
1
by: Siegfried Heintze | last post by:
I want to implement drag and drop for tables, divs, spans. The problem is that I don't know how wide or long my tables, divs and spans are going to be in advance so I cannot use absolute...
14
by: Fistro | last post by:
I'm trying to find a design that would allow me to build web pages without having to worry about compatibility issues (not too much, in any case,,,) I've came across this CSS layout technique:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.