treehouse : what would you like to learn today?
Web Design Web Development iOS Development

drop down menus

  • 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!
  • Try the z-index property. This will allow elements to appear "on top of" other elements that appear after it in the DOM.
  • I didn't use absolute positioning on my page, will the z-index work withouth that? Is there another way?
  • 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.