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

Brad Frost responsive menu pattern and max-height issue

  • http://codepen.io/bradfrost/pen/sHvaz

    Working on a menu based on this pattern, but I am curious, it uses:

      nav[role=navigation].active{max-height:15em}
    

    But what if you were using this in WordPress for example where using a dynamic menu the height could vary? Is there a better way to accomplish this? The dropdown animation doesn't seem to work when no height is set.