Trying to use Twitter Bootstrap’s (2.0) Dropdown menu.
But somewhy it adds additional empty a elements making it looke very weird:

See the example.
The questions:
- Why is it happening (what am I doing wrong)?
- How to fix it?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re not properly closing your “Contacts” menu item so the markup is being displayed as if the dropdown menu was part of your main link. Just add a closing
</a>tag at the end of the.caretdiv and it works:Demo: http://jsfiddle.net/rCFGY/1/