SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast tide's Avatar
    Join Date
    Mar 2005
    Location
    Hawaii
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    alternating colors on menu buttons

    I'm tearing my hair out trying to figure out how to do this. It seems like it should be easy with css.

    I am creating a simple horizontal menu with css. I would like for the background colors to alternate. Here's an example:

    http://dayaceglia.com/images/roughmenu.gif

    Anybody know of a simple way to do this?

    Thank you.
    Attached Images Attached Images

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just add a classname to every other list item in your CSS menu, then style those with the alternate color.

  3. #3
    SitePoint Enthusiast tide's Avatar
    Join Date
    Mar 2005
    Location
    Hawaii
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, I found some really complex solutions to this problem and was sure there was an easier way. It works. Thank you!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •