The best thing you can do is just make sure your page passes validation.
http://validator.w3.org/
There are a few firefox extensions that can make this easier.. check out the 'Web Developer Toolbar'. if your page passes validation you can chalk up any rendering problems to browser bugs, not your website code.