Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Natasha 79 posts 195 karma points
    Nov 25, 2015 @ 02:40
    Natasha
    0

    Bootstrap menu styling

    This is more of a css question, I have a bootstrap dropdown menu, but the third level is not displaying this is my css:

    .nav {background-color:#330066;}
    .nav ul {list-style: none;padding: 0;margin: 0;background: #330066;}
    .nav ul li {display: block;/*position: relative;*/float: left; background: #330066;}
    .nav li ul { display: none; }
    .nav ul li a { display: block; padding: 1em;  text-decoration: none; white-space: nowrap; color: #fff;}
    .nav ul li a:hover { background: #beb8d6; }
    .nav li:hover > ul {display: block; position: absolute;}
    .nav li:hover li { float: none; }
    .nav li:hover a { background: #fff; color:#330066; }
    .nav li:hover li a:hover { background: #beb8d6; color:#fff;}
    .nav ul ul ul {left: 100%; top: 0;}
    .nav ul:before,.nav ul:after {content: " "; /* 1 */  display: table; /* 2 */}
    .nav ul:after { clear: both; }
    

    Thanks

  • Natasha 79 posts 195 karma points
    Nov 25, 2015 @ 14:07
    Natasha
    1

    I worked it out after several sessions of pulling my hair out : ul ul ul {display:block} For anyone who has the same issue.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies