Define background color for individual parent nice menu items with CSS

Created on 3 November 2009, about 15 years ago
Updated 2 May 2024, 7 months ago

I am running Drupal 6 with Nice Menus and customizing a Zen theme. As such, I would really like to define different background colors for each of the menu items across the screen, with a uniform color for the drop-down menu below the menu.

I am having a hard time coming up with the proper syntax for the CSS code to be able to accomplish this.

In my custom CSS file (as defined in under themes>global settings), there is this:

ul.nice-menu-down li.menuparent,
/* Repeat for Garland header. */
#header-region ul.nice-menu-down li.menuparent {
  background: #eee url(arrow-down.png) right center no-repeat;
}

But I cannot get the syntax right to name each .menuparent by its ID number.

Anybody have more knowledge than me on CSS?

Thanks!

πŸ’¬ Support request
Status

Closed: outdated

Version

2.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States michaelbstringer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024