Grow your CSS skills. Land your dream job.

Active state on a menu item

  • # January 21, 2009 at 8:25 am

    How do I put an active state on a menu item?
    I’ve got the hover state covered, but I can’t wrap my head around the active state. All I realy want to do is have the active menu item be with a font color of black.

    # January 22, 2009 at 11:47 am

    By active, do you mean that the user has navigated to the page represented by the menu item? What framework are you working in?

    # January 22, 2009 at 12:14 pm
    "ploughansen" wrote:
    How do I put an active state on a menu item?
    I’ve got the hover state covered, but I can’t wrap my head around the active state. All I realy want to do is have the active menu item be with a font color of black.

    active state is when it is clicked and only when it is clicked, so you would need to hold in the click.

    if you mean the current state, as in you want to highligh what page your in, then give your link an id and style that the way you want it

    edit: http://www.honeycomb-web.co.uk/ look at the home button, then do view>source to see what I mean by current id

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".