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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:20:00+00:00 2026-06-07T14:20:00+00:00

I have this CSS menu: http://jsfiddle.net/7JC8t/ If you hover your mouse over ‘inostranstvo’ you

  • 0

I have this CSS menu:

http://jsfiddle.net/7JC8t/

If you hover your mouse over ‘inostranstvo’ you will see a dropdown open below it. What I’ve been trying to do but failing is to get the dropdown items to look like the items in the horizontal menu.

So when a user hovers over ‘inostranstvo’ the items that show up should have: the same width (width of the widest item), same height and background as the existing menu items.

The background is easy, but I can’t force the height and I don’t know how to align the widths. This doesn’t do anything:

#nav li:hover ul li{
    height:55px;
    line-height:55px;
    width:200px;
}

The width value is random, what’s most important is the height, which I can’t seem to force on the list items. On the other hand, adding a border works, but it adds it inside the red background area. I’m sure this can’t be complicated, but I can’t figure it out.

  • 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-07T14:20:02+00:00Added an answer on June 7, 2026 at 2:20 pm

    Have you tried to set the submenu li elements to “display-type: block”?

    I have added the following css to JSFiddle and it seems to work:

    #nav li:hover ul li {
        display: block;
        background: #DE2211;
        border-bottom: 1px solid black;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this css code http://jsfiddle.net/989Pd/ where the slash images must be in the
I have this fiddle: http://jsfiddle.net/tatygrassini/tZBXe/ Horizontal dropdown menu with a 1 level deep submenu.
I have created a custom drop-down element, which is listed on this page: http://jsfiddle.net/spryno724/2snUH/3/
http://jsfiddle.net/RedKnight91/Z6Ueu/4/ Hi! Look at that last menu (on the bottom). When you hover on
I have the following CSS/HTML setup http://jsfiddle.net/UDAUY/ How do I align the drop down
I have a horizontal menu on a page like this <link rel=stylesheet type=text/css href=/classified/siteassets/css/mymenu.css
Best shown with a Fiddle: http://jsfiddle.net/Jnttm/ How can I get the sub-menu to center
I'm following this tutorial and am trying to modify it to my use: http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/
I need to change form of dropdown. What I have: http://jsfiddle.net/gnEAe/5/ Here is illustration
I have this bootstrap twitter dropdown menu. I replaced the click event with hover

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.