Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member graphicnerd's Avatar
    Join Date
    Nov 2013
    Posts
    196
    Member #
    37739
    Liked
    1 times

    CSS Drop Down Menu help

    CSS Drop Down Menu help

    Please help I got a problem with my CSS, I wanted it to look like this ::

    HxR8DMM.jpg

    PRODUCTS

    --> NERPETS

    When you hover from the products nav , it drifts to the left and the layout breaks.

  2.  

  3. #2
    Senior Member sasha_bolcina's Avatar
    Join Date
    Sep 2014
    Location
    Serbia
    Posts
    274
    Member #
    40099
    Liked
    47 times
    style.css, line 9:
    #header div div {
    height: 124px;
    position: relative; <--- this is overwriting .navigation div { position: absolute; ... }
    }


    delete position: relative to see your menu is working well.
    Try to add absolute path (or more precise path, class, id...) to .navigation div

  4. #3
    Senior Member graphicnerd's Avatar
    Join Date
    Nov 2013
    Posts
    196
    Member #
    37739
    Liked
    1 times
    Quote Originally Posted by sasha_bolcina View Post
    style.css, line 9:
    #header div div {
    height: 124px;
    position: relative; <--- this is overwriting .navigation div { position: absolute; ... }
    }


    delete position: relative to see your menu is working well.
    Try to add absolute path (or more precise path, class, id...) to .navigation div
    I change my DIV to UL and I'm stuck again fixing it.

  5. #4
    Member
    Join Date
    Jul 2014
    Posts
    33
    Member #
    39531
    hello............................... click on link. its demo to CSS drop down list

    Another Simple CSS3 Dropdown Menu | CSSDeck

    CSS Menu

  6. #5
    Junior Member
    Join Date
    Nov 2014
    Location
    Gold Coast, QLD.
    Posts
    7
    Member #
    40778
    Make the lining of your menu to absolute so it wont overlay

  7. #6
    Junior Member
    Join Date
    Nov 2014
    Posts
    1
    Member #
    40884
    There are a few important parts of our CSS. The first is .site-navigation ul li ul { visibility: hidden; }. This hides our dropdown menu by default.

    The second important piece of CSS is the .site-navigation ul li:hover > ul { visibility: visible; }. This makes our dropdown menu display whenever the visitor hovers over the associated li.

    To ensure that our dropdown menu displays under the correct menu item, we set our .site-navigation li { position: relative; }, so that we can positon:absolute; the dropdown ul
    How to Create a Simple CSS Dropdown Menu - CSSForge


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com