Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Chrome Dropdown & Slideshow

  1. #1
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Chrome Dropdown & Slideshow

    I have the chrome drop down menu as well as a slideshow from dynamic drive int he code of my site but for some reason it makes the header which has the dropdown menu in disappear. Wondering if you could help me out. I have posted the page that it is doing it here: http://www.sarahliggett.com/sollenbe...rs/example.htm

    Thanks for the help!

    Sarah

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It's a CSS z-index issue- the default z-index of the slideshow is greater than that of the menu, thus overlapping it. Inside dropdown.css, try adding the code in red to the pertinent code below:

    Code:
    /*----------- Navigation -----------------*/
    .chromestyle{
    width: 100%;
    font-weight:bold;
    font-size: 12px;
    float: right;
    z-index:2000;
    position:relative;
    }
    
    .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
    content: "."; 
    display: block;  
    clear: both; 
    visibility: hidden;
    }
    
    .chromestyle ul{
    width: 100%;
    padding: 12px 0;
    margin: 0;
    text-align: right; /*set value to "left", "center", or "right"*/
    }
    
    .chromestyle ul li{
    display: inline;
    }
    
    .chromestyle ul li a{
    color: #F90;
    padding: 4px;
    margin: 0;
    text-decoration: none;
    
    }
    
    
    
    /* ######### Style for Drop Down Menu ######### */
    
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:2000;
    background: url(yellowbkg.gif) center;
    background-color: white;
    width: 200px;
    visibility: hidden;
    }
    DD Admin

  3. #3
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    So when I did that it did make the navigation and logo show up. But what do I need to do to make it drop below the navigation and logo?

  4. #4
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Nevermind. I put a <br /> inbetween the the logo/nav and slideshow and it looks fine now.

  5. #5
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Except I came across something and the dropdowns aren't showing up over the slideshow. Any idea on that?

  6. #6
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You neglected to add the 2nd high z-index property to the following chunk of code:

    Code:
    /* ######### Style for Drop Down Menu ######### */
    
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:2000;
    background: url(yellowbkg.gif) center;
    background-color: white;
    width: 200px;
    visibility: hidden;
    }
    DD Admin

  7. #7
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks! it is working now. I didn't realize it had a scroll on it earlier. It works great now!

  8. #8
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Do you know what I could do to make the space between the header area(logo & navigation) and the slideshow closer, not as much space in between?

  9. #9
    Join Date
    Sep 2008
    Location
    Indianapolis, IN
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Also, is there a way to change the background of the slideshow so when I have a shorter image then most of the images, its background is white instead of black?

  10. #10
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Doing a search on dd, this comes up
    http://www.dynamicdrive.com/forums/s...ad.php?t=49688

    to change the space between the logo/navigation and the slideshow, this might work:
    Code:
    .chromestyle {
        float: right;
        font-size: 12px;
        font-weight: bold;
        height: 40px;
        position: relative;
        width: 100%;
        z-index: 2000;
    }
    Last edited by azoomer; 04-21-2011 at 12:09 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •