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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:11:12+00:00 2026-06-03T16:11:12+00:00

I try to create a CSS based menu for my web site, with some

  • 0

I try to create a CSS based menu for my web site, with some code from lwis.net (I use a small snippet only)

The menu code is here : http://jsfiddle.net/hCwZ2/

What I like to do, is on hover at the sub level menu items to change the color to black. But what I have done, is when I hover the sub element to make black the elements of the sub-sub-elemetns too.

How can I make black only the item on witch the mouse is hover it ?

IE:

On Services > Web Design:hover things are fine.
On Services > Print Design:hover things are wrong because the Services > Print Design > Busines Card and Services > Print Design > Flyer are black too.

I need them in black, only on hover each one seperatly.

NOTE : I need only the items of the sub menus to change color on hover. The top level items must be white on hover.

Kind regards
Merianos Nikos

  • 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-03T16:11:15+00:00Added an answer on June 3, 2026 at 4:11 pm

    you should set hover on “li a” element or define a class for sub-menu li element:

    replace this :

    #main_nav li:hover > ul li:hover a
     {
       color:#000;
     }
    

    with this one

    #main_nav li > ul li a:hover
     {
       color:#000;
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to create a very simple app using windows API. I've done some
I want to create a web-based board game like reversi. I created a similar
I try to create a transparent gradient with CSS. I need it for a
I'm try to create a sliding banner with jquery here. I tried to code
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I try to create a CakePHP application based on themes. I using the latest
I try to create a plugin for personal use, that will place clouds in
all! I'm the begginer at html and css and I try to create the
I'm getting this awkward error any time I try and create a dialog from
I want to try create something like Zend's Server Pagecache. What I want to

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.