Prior to IE 9, IE never seemed to adhere to any rules at all as CSS goes, but almost all other browsers follow these W3 standards:
CSS Reference , W3 Review , W3 CSS Validator
In theory, if you stick to this, everything should work, but in reality this is not entirely true. This is certainly a step in the right direction, but the rest of nitty gritty is simply explored through effort, error, and experience.
source share