Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8249017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:23:31+00:00 2026-06-07T23:23:31+00:00

Hello I was wondering whether this is possible. I have a horizontal menu created

  • 0

Hello I was wondering whether this is possible. I have a horizontal menu created using CSS with submenus and it works just fine. However, I want to have submenus appear to the right of the submenus already appearing.

The menu is as such: http://jsfiddle.net/dvpKx/39/

And the code is:

/*First reset ul styles*/
    .nav,
    .nav ul,
    .nav li,
    .nav a {
        margin: 0;
        padding: 0;
        border: none;
        outline: none;
    }

/*Now add fixed width & height to the menu along with rounded corners and gradients*/
    .nav {
    height: 50px;
    width: inherit;
    margin: 10px;


    background: -webkit-linear-gradient(top, rgb(198,56,32) 0%, rgb(127,48,35) 100%);
    background: -moz-linear-gradient(top, rgba(198,56,32,1) 0%, rgb(127,48,35) 100%);
    background: -o-linear-gradient(top, rgb(198,56,32) 0%, rgb(127,48,35) 100%);
    background: -ms-linear-gradient(top, rgb(198,56,32) 0%, rgb(127,48,35) 100%);
    background: linear-gradient(top, rgb(198,56,32) 0%, rgb(127,48,35) 100%);

    -webkit-border-radius: 15px;
    -moz-border-radius: 5px;
    border-radius: 5px;


    }


/*Float links left to align links horizontally & position relative to align submenus properly*/

    .nav li {
    position: relative;
    list-style: none;
    float: left;
    display: block;
    height: 50px;
    }


/* 
Styling menu links -
font, color, padding, etc. Then a dark text shadow and a color transition to create a smooth effect when the color changes on hover state. To create the links separator add a border to the left and right and then we will remove the left border from the first link and the right border from the last link. For the hover state we will only change the text color.
 */

    .nav li a {

border-bottom: none;                    

        background: none;
        display: block;
        padding: 0 14px;
        margin: 6px 0;
        line-height: 32px;
        text-decoration: none;

        border-left: 1px solid #393942;
        border-right: 1px solid #4f5058;

        font-family: Verdana, sans-serif;
        font-weight: bold;
        font-size: 14px;

        color: #f3f3f3;
        text-shadow: 2px 3px 0px rgba(0,0,0,0.6);

        -webkit-transition: color .2s ease-in-out;
        -moz-transition: color .2s ease-in-out;
        -o-transition: color .2s ease-in-out;
        -ms-transition: color .2s ease-in-out;
        transition: color .2s ease-in-out;
    }

    .nav li:first-child a { border-left: none; }
    .nav li:last-child a{ border-right: none; }

    .nav li:hover > a { 
        color: rgb(114,163,45); 
        background: none;
        font-size: 18px;
    }

/* 
SUB MENU 1
We will start to position the sub menu 50px from the top and 0px from the left of the menu item and add bottom rounded corners. We will set the opacity to 0 and on hover state to 1 to create the fade in/out effect. For the slide down/up effect we need to set the list height to 0px when is hidden and to 36px on hover state.
 */

.nav ul {

    position:absolute;

    top: 50px;
    padding-left: 0px;

    opacity: 1;
    background: rgb(43,35,34);

    -webkit-border-radius: 0 0 5px 5px;
    -moz-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;

    -webkit-transition: opacity .25s ease .1s;
    -moz-transition: opacity .25s ease .1s;
    -o-transition: opacity .25s ease .1s;
    -ms-transition: opacity .25s ease .1s;
    transition: opacity .25s ease .1s;
}

.nav li:hover > ul { opacity: 1; }

/* Hiding submenu 1 */
.nav ul li {
    height: 0;
    overflow: hidden;
    padding: 0;

    -webkit-transition: height .25s ease .1s;
    -moz-transition: height .25s ease .1s;
    -o-transition: height .25s ease .1s;
    -ms-transition: height .25s ease .1s;
    transition: height .25s ease .1s;
}
/* When hovered over, show submenu 1 */ 
.nav li:hover > ul li {
    height: 46px;
    overflow: hidden;
    padding: 0;

    z-index: 8999;
}
/* Hiding submenu TWO */
.nav ul ul li {
    height: 0;
    overflow: hidden;
    padding: 0;

    -webkit-transition: height .25s ease .1s;
    -moz-transition: height .25s ease .1s;
    -o-transition: height .25s ease .1s;
    -ms-transition: height .25s ease .1s;
    transition: height .25s ease .1s;
}
/* When hovered over, show submenu 1 */ 
.nav li:hover > ul ul li {
    height: 80px;
    padding: 0;

    z-index: 9000;
}



/* Setting width of submenu to 100px & add a bottom border instead of left and right ones 
(also removing it from last link)   */

.nav ul li a {
    width: 250px;
    padding: 4px 0 4px 40px;
    margin: 0;


    border: none;
    border-bottom: 1px solid #343438;
}

.nav ul li:last-child a { border: none; }

​

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:23:32+00:00Added an answer on June 7, 2026 at 11:23 pm

    I would recommend the Son of Suckerfish dropdown (a CSS solution).

    Code: http://www.htmldog.com/articles/suckerfish/dropdowns/ (specifically the Multi-level dropdown section about 1/2 down). Also, links to examples are shown at the bottom of the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am wondering whether it is possible to do this type of regex:
gcc (GCC) 4.6.3 c89 Hello, I am just wondering if this is the best
Hello fellow Computer People! I could do this myself, but was just wondering if
Hello just wondering why firbug is stating NaN even when these inputs have information
Hello: I have been experimenting with WPF this afternoon, Im wondering does anyone know
I was wondering whether: $foo = <<< EOT Hello, World! EOT; is just as
Hello was just wondering if my app will get rejected using the following code:
Hello I am using LibXML to parse an rss feed and I am wondering
Hello android designers, 1-I have been wondering. Is it a good design approach to
Hello i was wondering if it is possible and if so how? to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.