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 8785279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:18:48+00:00 2026-06-13T21:18:48+00:00

I NEED A CSS MENU WITH MENU AND SUBMENU IN 2 HORIZONTAL LINES :

  • 0

I NEED A CSS MENU WITH MENU AND SUBMENU IN 2 HORIZONTAL LINES:
Hovering on the menu, the sub menu will load on the second line.
I got a nice code for such menu: HERE.

Now it’s working as if-
– I hover on the MENU, if there is SUB MENU, they will appear
– I take off my mouse from the MENU, the SUB MENU will disappear

Though the color combination is not good, but the functionality is fine as I desired them to be as Horizontal in sub menu.

enter image description here

DESIRED MODIFICATION

Now I need the menu to be modified a bit, then if-
– I hover on the MENU, if there is SUB MENU, they will appear
– I take off my mouse from the MENU, the SUB MENU will disappear
– I click on the MENU, then the MENU will be selected and the specific page will load, and the SUB MENU will appear and be visible where they designated to
– I click on the SUB MENU, then the SUB MENU will be selected and the specific page will load and the SUB MENU will be visible too

It should be like: THIS MENU

Where the modifications to be done?
I’ve tried:

.menu li:active > ul {
  position: absolute;
  display: block;
  width: 920px;
  height: 25px;
  margin: 40px 0 0 0;
  background: #315299; 
}

But it’s not working. 🙁

P.S.: I’m using the menu in a WordPress site.

  • 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-13T21:18:49+00:00Added an answer on June 13, 2026 at 9:18 pm

    Here is the solution I made at last. And it’s WordPress-specific:

    .menu li.current-menu-item > ul,
    .menu li.current-menu-parent > ul,
    .menu > li > ul > li.current-menu-item > ul{
      position: absolute;
      display: block;
      width: 960px;
      height: 25px;
      margin: 23px 0 0 0;
      background: #E5E5E5; 
    }
    
    .menu li.current-menu-item > ul li a,
    .menu li.current-menu-parent > ul li a,
    .menu > li > ul > li.current-menu-item > ul li a{
      float: left;
      color: #000;
      text-decoration: none;
      margin: 0;
      padding: 0 30px 0 0;
      background: #E5E5E5; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a little HTML/CSS/JQuery drop down menu working. My pseudo code for it
I need to center a CSS menu that has an unknown width. I found
We need a database driven CSS menu . How would you do that? I
http://www.lwis.net/free-css-drop-down-menu/dropdown.simple.horizontal.html Right last item's dropdown goes outside the menu alt text http://shup.com/Shup/374936/110621146-My-Desktop.png I need
This is not a CSS problem. The HTML isn't there. I need the menu,
I got a folder structure like so css main.css home layout.css menu.css ... account
I have a menu bar. The menu bar is horizontal. The sub menu is
I am using the following well-known CSS code to get a drop down menu
I'm trying to make a nice-looking CSS menu, for this website . (The domain
I have a standard CSS menu, made with UL and LI tags. I need

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.