Closed (fixed)
Project:
Dynamic display block
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2009 at 21:23 UTC
Updated:
12 Aug 2012 at 08:39 UTC
Maybe it is very simple but I can not find the solution.
I want to change the z-index of the ddblock.
Here is part of the html generated:
<div class="slide clear-block border" style="position: absolute; top: 0pt; left: 0pt; z-index: 5; opacity: 1; display: block; width: 478px; height: 303px;">
<div class="slide-inner clear-block border">
<img height="303" width="404" title="" alt="Test news 2" src="http://localhost/drupal/sites/default/files/imagecache/test/PC300110.JPG"/> <div class="slide-text slide-text-horizontal slide-text-bottom clear-block border" style="">
<div class="slide-text-inner clear-block border">
<div class="slide-title slide-title-horizontal clear-block border">
<div class="slide-title-inner clear-block border">
<h2>Test news 2</h2>
The z-index is set inline so it is not from a css file. Where are these values taken from?
Than you in advance.
Comments
Comment #1
ppblaauw commentedThe z-index setting comes from the jcycle plugin used for the effects.
What do you want to accomplish?
What issues do you have?
Maybe there are other solutions then changing the z-index of ddblock.
Please explain and maybe I can help.
Comment #2
otinanism commentedThank you for the reply. I am using Nice Menus module and when a menu expands they go under the ddblock. I read somewhere that it is due to z-index, and when changing z-index of the div shown in my previous post to 0 (through firebug in firefox), it seems to work correctly. Any advice will be appreciated.
Comment #3
ppblaauw commentedYou can add a z-index to nice-menus CSS. I did that in an install with nice menus. and ddblock (same issue)
The z-index needs to be bigger then the amount of slides you use in the slideshow.
Will add more information later where to add exactly later.
Comment #4
ppblaauw commentedWhen you add a z-index as follows:
Nice menus will overlap the slides, if you don't have more then 10 slides.
Hope this helps you further, please let me know.
Comment #5
otinanism commentedThank you for your answer.
This did not work for me though. The menu is still behind the ddblock and I only have 5 slides. For some reason, only when I change the z-index of the ddblock (through firebug) then the menu overlaps the slides. I must note here that I am testing this in Firefox, I don't know if it matters.
Comment #6
ppblaauw commentedAdding solution that worked (from e-mail correspondence.)
you could try add z-index:0 in the ddblock theme CSS as below
div.ddblock-cycle-upright20 div.slider-inner {
background:transparent url(../images/transparent_bg.png) repeat scroll 0 0 !important;
height:303px;
overflow:hidden;
position:relative;
visibility:hidden;
z-index:0;
}
Hope this helps you further, please let me know.
Comment #8
clayhaus commentedIt is not clear to me where and in what file I should be adding a "z-index:0;" Is this to be added to the ddblock.css file or to one of the .js files? I have looked in all of them and nothing is obvious. Thanks in advance for your help.
Comment #9
ppblaauw commented#8
Are you using the basic options of the ddblock module or the advanced options with slideshow themes?
What is your issue?
Do you have a link to your Internet site?
Comment #10
clayhaus commentedHi, basic options and the issue is that the Nice menus are behind the DDBlock. The fix seems to be z-index:0 parameter, but I'm not quite sure where it is supposed to go. The site as live at http://eutahproject.org/
thanks in advance for your help
Comment #11
ppblaauw commentedYou can adjust the z-index to a value bigger then the amount of slides in:
http://eutahproject.org/themes/cti_flex/css/navigation.css
#suckerfishmenu ul.menu {
display: inline;
list-style: none;
margin: 0px;
padding: 0px;
z-index: 10;
}
I changed it from 3 to 10
Hope this helps you further, please let me know.
Comment #12
clayhaus commentedwell, that worked like a charm! Thanks much for your help. I had no idea that I should have been working with the theme navigation css file. thanks again!
Comment #13
ppblaauw commentedSet status back to closed
Comment #14
benstallings commentedUsing the Drupal 7 version, the solution in #11 did not work for me. I had to use the solution alluded to in #6. Through trial and error I found that if I assigned z-index=0 to the block ID, in my case #block-ddblock-1, that fixed the problem. I hope this helps someone. Thank you to all those who posted above!
Comment #15
reprabowo commentedI have the primary menu links z-index 999 but still the dropdown menu behind the DDB.
Any help or suggestion?
http://bio.unsoed.ac.id/
Many thanks in advance.
Comment #16
ppblaauw commented#15
I don't think it has something to do with the ddblock slideshow.
If I set the slideshow wrapper (id="ja-slideshow") to display:none in your site the menu still does not show up on the homepage.
Comment #17
reprabowo commentedThank you ppblaaw the menu works well in all pages except in front page right after I configure DDB. I will check again.
Comment #18
reprabowo commentedppblaaw here the result; in the front page when I deactivated the block of DDB the dropdown menu appear.
Comment #19
ppblaauw commentedI had a look at the site and see the ddblock there.
Could you disable it for a moment?
Comment #20
ppblaauw commentedThe issue is probably not with the z-index, but with the javascript errors on the homepage:
I see this error on the homepage when hovering the menu.
It does not show up hovering the menu in the other pages.
Comment #21
reprabowo commentedI am sorry ppblaauw I was away for a week, I have disabled the ddb block and the drop down menu show up.