Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS menu: top-level background only if dropdown

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33756
    nate22
    Member

    I have a horizontal menu in which some buttons have dropdowns. I would like the background of only the buttons with dropdowns to change color, so that it will look like a tab with a dropdown attached. Otherwise, for the other buttons, I don’t want to add a background color change.

    So far, I can only figure out how to do all or none (ie. all top-level items change background color or none), but I can’t figure out how to selectively apply a background change to only the top-level items which have a dropdown.

    #84355
    furrball1383
    Member

    check out this page, this shows how you would highlight the current page
    http://www.visibilityinherit.com/code/current-page.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.