Grow your CSS skills. Land your dream job.

drop down menus

  • # June 1, 2009 at 3:07 pm

    My drop down menus finally work, but now how can I make them drop down OVER the rest of my page? Right now when the menus drop down, the div’s below are shifted to the right. Any help would be great!

    # June 1, 2009 at 4:39 pm

    Try the z-index property. This will allow elements to appear "on top of" other elements that appear after it in the DOM.

    # June 1, 2009 at 5:15 pm

    I didn’t use absolute positioning on my page, will the z-index work withouth that? Is there another way?

    # June 1, 2009 at 5:28 pm

    Yeah, I just finished a page that uses the z-index property on the navigation and I’m not using absolute positioning either. I think it will work on any box whose position is absolute, fixed or relative. At the very least, you can make it relative and leave the positioning at zero.

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

You must be logged in to reply to this topic.

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