Fix HTML rendering issues found in cross-browser testing.