PDA

View Full Version : Simple Controls Gallery v1.3, problem with navigation bar.



prionkor
05-07-2010, 04:57 PM
1) Script Title: Simple Controls Gallery v1.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm

3) Describe problem:

I really like this simple script. But i had a problem with the navigation bar the drop down menu goes under the slideshow. Please see here http://muktomona.co.cc/gallery.php

How do i come up with that?

If you need more info. Please let me know. Waiting for your kind help. Thanks!

ddadmin
05-09-2010, 08:48 PM
The Simple Gallery is contained inside a a relatively positioned DIV, which gives it precedence stacking wise relative to non positioned elements on your page. You can try setting your menu's container to relative as well, and give it a high CSS z-index to see if that fixes the issue. Inside your HEAD section, you can try adding something like this:


<style type="text/css">

#nav{
position:relative;
z-index:2000;
}

#nav li ul{
z-index:2000;
}

</style>

BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice: http://www.dynamicdrive.com/notice.htm

prionkor
05-10-2010, 07:39 AM
Thanks! That was very helpful!

The position relative doesn't work. so i fix it by absolute position for #nav and #gallery. #gallery was positioned relative as default. Will it cause problem? I tested it on all browser current version. Not tested on previous versions because i don't have them.

And about the cradit. The website is still in progress. When completed i will put a link to the simpleGallery page on the footer.

Thanks!