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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:45:56+00:00 2026-05-15T10:45:56+00:00

I have a menu: <div id=menu> <ul=navigation> <li><a href=>Home</a></li> </ul> </div> With the sliding

  • 0

I have a menu:

<div id=menu>
   <ul=navigation>
     <li><a href=>Home</a></li>
   </ul>
</div>

With the sliding doors technique I want to create my button (containing rounded corners at the bottom.)

I can get this to work, by hovering the a and the li. But the li is bigger, and if I hover over the li, without hovering the a, only the background image for the li shows.

Now I’m wondering if there is a way to connect the hover of the li and the hover of the a within css. I rather fix this problem without using javascript.

Googleing didn’t helped me further. I’m guessing this isn’t possible, but I wanted to be sure before trying other options.

Thanks in advance for any advice/help/suggestions.

  • 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-15T10:45:56+00:00Added an answer on May 15, 2026 at 10:45 am

    From what I gather you cannot do what you are after in the way you have described it.

    However what I would do is make the “a tag” display as block and set the width and height to fill the “LI” that way you can use a:hover and change the whole bg which makes it look like the LI is changing

    
    li a {
        background:#000 url(images/bg.png) no-repeat 0 0;
        display:block;
        height:20px;
        width:100px;
    }
    li a:hover {
        background:#fff url(images/bg.png) no-repeat 0 -20px;
    }
    
    

    also use some padding to sit the text in the right place within the “LI” and remove any padding from the “LI”

    li:hover is not supported without JS in older versions of IE so using a:hover instead provides better cross browser compatability

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

Sidebar

Related Questions

I have a menu set up this way: <div id='top-navigation'> <ul> <li><a class='top-nav-button-unclicked' href='#'>SUBJECT</a></li>
I have a menu bar and I want to create a div for each
I have the following situation: <nav id=access role=navigation> <div class=menu> <ul> <li class=page_item><a href=#pricing
I have a navigation menu like: <div class=my_menu> <ul> <li><a href=http://localhost/en/about-us>About Us</a></li> <li><a href=http://localhost/en/contact>Contact</a></li>
I have a horizontal menu navigation. The code is: <div class=menu-holder> <ul class=menu> <li>
I have a sliding div menu made with jQuery, but you have to click
I have the following jquery script: $(function(){ $('#top-menu').on('click', 'a.change-menu', function(e){ e.preventDefault() $(#menu-change-div).load($(this).attr(href)); }); });
I have the below sample code for a navigation list: <div id=menu> <ul> <li><a
I have a navigation menu and when 'contact is clicked' a div opens at
I have an id #navigation li a and a class .menu-description . I want

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.