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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:22:28+00:00 2026-05-24T16:22:28+00:00

I’m trying to design a horizontal menu just using CSS Please refer to the

  • 0

I’m trying to design a horizontal menu just using CSS

Please refer to the following
http://jsfiddle.net/aUYca/

The CSS Classes are

  1. li.navMenuParent: A Top Level Menu Item
  2. li.navMenuActiveParent: A Top Level ACTIVE menu item
  3. li.navMenuNode: A Top Level Menu Item that doens’t have child items
  4. li.Active: A Child level ACTIVE menu item

I want the menu to always display the child level menu when the parent has a navMenuActiveParent element. (The intial state hover over 2Parent)

.navmenu ul li.navMenuActiveParent > ul
{
display: inline;
left: 0;
margin: 0;
padding: 0;
position: absolute;
width: 100%;
}

However i want that submenu hidden when the user hovers over a top level menu item WITHOUT children. (Hover over the HOME menu item)

 .navmenu li.navMenuParent ul
 {
   display: none;  -- I want this applied to ALL <ul> under .navMenu
 }

I want the Submenu to show the correct submenu when the user hovers over a top level menu item WITH children. (Hover over 1Parent)

 .navmenu li.navMenuParent:hover ul, .navmenu li.navMenuParent.hover ul
 {
   position: absolute;
   display: inline;
   left: 0;
   width: 100%;
   margin: 0;
   padding: 0;
 }

I can’t seem to get this to work with pure CSS.

Thanks for any help!

  • 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-24T16:22:29+00:00Added an answer on May 24, 2026 at 4:22 pm

    The trick is to apply the right effects to the right elements with as little markup as possible.

    http://jsfiddle.net/EGNKE/74/

    Mind you I didn’t reset most of the stuff because jsFiddle does that for you and I would reccommend a reset css file by default too if you’re not like, a god, at css.

    It only dies in quirks mode in IE, but it’s easy to prevent people from viewing your website in quirks mode by keeping to the standards and/or using X-UA-Compatible header (google it).

    I trust you can figure the rest out yourself, else let me know 🙂

    (oh btw you better be using a shorttag for that background arrow in a menu item background: color url(‘path.jpg’) posx posy repeat;)

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

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.