The best way I've found to check your work is to use the
W3C validator. Fair warning that thing is brutal.
You might also consider moving all of your style information into the head of the document or to an external style sheet. IMO it makes it much easier to troubleshoot if you deal with the style information and the XHTML separately.