In first example, the border adds to the height, and pushes the other items down, instead of going underneath the text. In the second example, it is fixed by changing the height. This allows the menu stays in place and the border grows underneath the text.