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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:26:37+00:00 2026-05-27T22:26:37+00:00

I have a CSS menu in my page. When I hover the mouse over

  • 0

I have a CSS menu in my page. When I hover the mouse over the items, their drop-down menu appears. I’ve used some css shadows like this:

#menu li:hover
{
    //...
    -moz-box-shadow: -2px 0px 5px #000;
    -webkit-box-shadow: -2px 0px 5px #000;
    box-shadow: -2px 0px 5px #000;
}

also in my drop-down class, I’ve used some shadows:

.drop-down
{
    //...
    display:none;
    -moz-box-shadow: -2px 2px 5px #000;
    -webkit-box-shadow: -2px 2px 5px #000;
    box-shadow: -2px 2px 5px #000;
}

the result looks like this:

Shadow

So my question is, how can I hide the shadow under First Item and make the drop-down and menu look like one single object (not separated)?

EDIT:
here’s the html and the css to show the drop-down:

<ul id="menu">
    <li><a href="#">First Item</a>
    <div class="drop-down">
        <div>
            ...</div>
    </div>
    </li>
</ul>

#menu li:hover .drop-down
{
    left: -1px;
    display: block;
    top: auto;
}

here is a simple version of that in jsfiddle.net

  • 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-05-27T22:26:38+00:00Added an answer on May 27, 2026 at 10:26 pm

    If I’ve understood correctly, you want a single border to apply around both the menu item text and the revealed menu. The main problem with this in the jsfiddle you posted seems to be that .drop-down has an absolute position so is not inside its parent’s div block. Of course, you want the drop-down menus to be absolutely positioned so they don’t affect the other elements on the page (i.e. pushing down the body text).

    Therefore, the best solution might be to repeat the menu text inside the drop-down, and absolutely position it up one line so it covers the original menu text. That way, you can apply whatever styling you want to it as a unit.

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

Sidebar

Related Questions

I have a horizontal css menu with 5 items. e.g 1) Home 2) Users
I have css hover over images for my tabs and I'm trying to get
I have created an HTML page which uses simple CSS (no javascript) for menu
I have a web page with a CSS dropdown navigation menu. My issue is
I've got a css-based horizontal drop down menu that works perfectly well, but I'm
I am using the following well-known CSS code to get a drop down menu
I have a dropdown menu on my page but there are some problem i.e
Using CSS Style Sheet In my web page, i have two class like menu
I have this problem with the menu floating over the border of the page.
Stack, I'm having difficulty creating a good drop down navigation menu using only css.

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.