Puoi provare a mettere il doctype xhtml.(probabilmente lo hai già fatto)