Javadoc formatting broken since upgrading to Java 7

java, java-7, javadoc

Solution

Java 7 changed the CSS stylesheet used by Javadoc, as the documentation now has different formatting of various page elements.

You can download the correct stylesheet from Oracle:

http://docs.oracle.com/javase/7/docs/api/stylesheet.css

Problem

Since upgrading my project to Java 7, the generated documentation now has broken formatting. How to fix this?

Original source