If you are having problems determining the causes for your li or div tags odd behavior once you click them, make sure you check the behavior of :focus class on those elements. Maybe default behavior kicks in and makes problems for your design.

Also, if your background color acts strange, you might want to add more tags to your selector. Like