Current location: Hot Scripts Forums » General Web Coding » CSS » Z-index problem?


Z-index problem?

Reply
  #1 (permalink)  
Old 08-05-10, 04:07 PM
jickpictures jickpictures is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Unhappy Z-index problem?

I have a flash video and a jquery drop down menu on my website at : Jick | Short movies for short attention spans. For some reason, on IE6-7 and Firefox for Windows, the jquery menu does not show up on top of my flash video. It's supposed too. I tried messing with it by adding
Code:
z-index: 1;
on the video, and for the drop down menus a
Code:
z-index: 504;
I'm actually not sure if it's working because I can't test it in IE6-7 or Firefox for windows. Can someone help me out and see if it worked? It's the "Watch More" and "Extras" drop down menu at the top of the page.

And if it doesn't work, can you maybe give me a suggestion on how to fix it? Thank you.

Ryan
Reply With Quote
  #2 (permalink)  
Old 08-09-10, 07:50 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
For now it only works for Firefox on Windows. Safari, IE7, 8, 9 (alpha developer test version) and Chrome show the menu under the movie. I'll try and find out why, but since I have to work with your website and have to modify all the relative paths, it might take little while.

I'll get back to you asap.

/Yeroon
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote
  #3 (permalink)  
Old 08-09-10, 08:03 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
OK Found it. Z-Index has no influence on your situation as you dont use obsolute positioned elements. The solution is in the object and embed tag of your video:

Change:

Code:
<object style="z-index:2;" width="900" height="506"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13900625&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed  src="http://vimeo.com/moogaloop.swf?clip_id=13900625&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="900" height="506"></embed></object>
to:

Code:
<object style="z-index:2;" width="900" height="506" wmode="transparent"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=13900625&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed  wmode="transparent" src="http://vimeo.com/moogaloop.swf?clip_id=13900625&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="900" height="506"></embed></object>
So add wmode="transparent" to both the object and the embed tag. Problem solved!
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish

Last edited by Yeroon; 08-09-10 at 08:04 AM. Reason: Spelling
Reply With Quote
The Following User Says Thank You to Yeroon For This Useful Post:
jickpictures (08-09-10)
  #4 (permalink)  
Old 08-09-10, 01:25 PM
jickpictures jickpictures is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
OH yes, you are the greatest, thank you so much for helping me out!

Maybe you can help me out with something else real quick. Can you tell me if the website is all intact in IE and everything? It's okay if can't and you're busy. I'm working on getting Parallels for Mac so I can test it out.

Again, thanks so much for your help.
Reply With Quote
  #5 (permalink)  
Old 08-09-10, 03:46 PM
jickpictures jickpictures is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
Nevermind Yeroon. I got Parallels and am testing it on all browsers. However, I noticed that the drop down menu doesn't work at all in IE7. Do you know why that is?
Reply With Quote
  #6 (permalink)  
Old 08-10-10, 10:41 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
At the workplace I am now I don't have the real IE7. I can only put IE8 in IE7 compat mode. It works fine there. I will try and open your website in a real IE7 asap.

/Yeroon
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote
  #7 (permalink)  
Old 08-10-10, 11:13 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Hi,

You need to remove the position:relative from your frontpage.css file in the following sections:

css Code:
  1. #top2 {
  2.     margin-left: auto;
  3.     margin-right: auto;
  4.     REMOVE HERE
  5.     width: 900px;
  6.     height: 98px;
  7. }
  8.  
  9. #navcontent {
  10.     float: right;
  11.     REMOVE HERE
  12.     width: 620px;
  13.     height: 98px;
  14. }
  15.  
  16. #navbottom {
  17.     background: url(../images/navbottombg.png);
  18.     margin-left: auto;
  19.     margin-right: auto;
  20.     REMOVE HERE
  21.     width: 620px;
  22.     height: 26px;
  23. }
  24.  
  25. #extras {
  26.     float: right;
  27.     left: -2px;
  28.         REMOVE HERE
  29.     width: 140px;
  30.     height: 26px;
  31. }

You might want to check your layout after you modify this of course. Not sure what influence it has on the rest of your page.
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote
The Following User Says Thank You to Yeroon For This Useful Post:
jickpictures (08-10-10)
  #8 (permalink)  
Old 08-10-10, 01:42 PM
jickpictures jickpictures is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 12
Thanks: 4
Thanked 0 Times in 0 Posts
You are amazing Yeroon. Solved all my problems. Thanks again!
Reply With Quote
  #9 (permalink)  
Old 04-16-11, 06:20 AM
dynamicdreamz1 dynamicdreamz1 is offline
Newbie Coder
 
Join Date: Apr 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Z-index problem?

I just had this problem and the fix I found (thanks to Quirksmode) was to give the direct parent of the node you are trying to set a z-index of it's own z-index that is at less than the z-index of the node you are trying to set. Here is a quick example that should work in IE6

<html>
<head>
<style type="text/css">
#AlwaysOnTop {
background-color: red;
color: white;
width: 300px;
position: fixed;
top: 0;
z-index: 2;
}
#Header {
color: white;
width: 100%;
text-align: center;
z-index: 1;
}
</style>
</head>
<body>
<div id="Header">
<div id="AlwaysOnTop">This will always be on top</div>
</div>
<div id="Content">Some long amount of text to produce a scroll bar</div>
</body>
</html>


Surat web design company
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
login, roles problem dbrook007 ASP.NET 10 11-10-06 03:42 PM
Form Display Problem neevrap02 Visual Basic 1 09-05-06 05:18 AM
Problem with index server search traceMe ASP 0 03-03-05 12:21 AM
Create an index with Asp.net-vb code kathryn ASP.NET 0 01-04-05 08:39 AM
Link to index (PR5) or the forum (PR6) iKwak HTML/XHTML/XML 0 08-26-04 03:35 AM


All times are GMT -5. The time now is 04:44 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.