- Don't set specific height of <li> and <a>, so that the height will be extended automatically when two lines.
- Menu items must be "visible" in the beginning or "height()" will always return 0.
- Loop <li> to check height values. If the height is more than expected, that means the text in menu item is too long.
- Change "line-height" and "padding" values for items with two lines.
- Set specific height value if needed. e.g. The last item need different height to show full background image.