HTML and CSS validation
 
 

Make sure the HTML document you are working on is valid as per W3C recommendations.

It doesn’t need to be 100% valid but it will atleast tell you about unclosed and improperly nested tags/elements which could caude css problems.