Ralph2
Welcome to the world of validators!
CSS Validator
Javascript Validator
These can eat hours of your time getting everything right, but it is totally worth it in the end.
You will also need to learn to use the right doctype declaration for what you are doing - I have abandoned support for older browsers, and now only develop in XHTML 1.0. This means that everyone who has a sensible browser gets the same result every time, and people who don't are encouraged to upgrade. We can't keep catering for people who refuse to move with times forever...
JSLint (the javascript validator) can be particularly unkind and make you tear your hair out very quickly, but it has taught me a lot about Javascript and the way it should/should not be used.
There is, before anyone asks, no such validator for PHP - that is because PHP is self validating in way, if you get something wrong, error messages will tell you what you got wrong. I have, however, found this online syntax checker useful in the past, but it is not doing anything more than any PHP installation, it's simple presenting your code and the error message(s) back to you in an easy to read way.