XHTML/CSS validation and rendering fixes

bac91fc8a609d174d3a0768dcae3d2f4b9638e6d