diff --git a/doc/Doxyfile.extra.in b/doc/Doxyfile.extra.in
index 2266c668b99dfb00f22ab4330df6171b725406e9..c780d363d94530f39fd16123cde4c82529318625 100644
--- a/doc/Doxyfile.extra.in
+++ b/doc/Doxyfile.extra.in
@@ -425,9 +425,21 @@ HTML_FOOTER            =
 # will generate a default style sheet. Note that doxygen will try to copy
 # the style sheet file to the HTML output directory, so don't put your own
 # style sheet in the HTML output directory as well, or it will be erased!
+# NOTE: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag,
+# as it is more robust and this tag (HTML_STYLESHEET)
+# will in the future become obsolete.
 
 #HTML_STYLESHEET        = @PROJECT_SOURCE_DIR@/doc/package.css
 
+# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# cascading style sheets that are included after the standard style sheets
+# created by doxygen. Using this option one can overrule certain style aspects.
+# This is preferred over using HTML_STYLESHEET since it does not replace
+# the standard style sheet and is therefore more robust against future updates.
+# Doxygen will copy the style sheet files to the output directory.
+
+HTML_EXTRA_STYLESHEET        = @PROJECT_SOURCE_DIR@/doc/customdoxygen.css
+
 # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
 # Doxygen will adjust the colors in the style sheet and background images
 # according to this color. Hue is specified as an angle on a colorwheel,
diff --git a/doc/customdoxygen.css b/doc/customdoxygen.css
new file mode 100644
index 0000000000000000000000000000000000000000..0e3416fd32ecbfc5ab2a21d110a1e0afaa333e0e
--- /dev/null
+++ b/doc/customdoxygen.css
@@ -0,0 +1,19 @@
+/* Customizing Doxygen output */
+
+/* Needed to allow line breaks in tables*/
+.memberdecls {
+  table-layout: fixed;
+  width: 100%;
+}
+
+/* Needed to break long template names*/
+.memTemplItemLeft {
+  white-space: normal !important;
+  word-wrap: break-word;
+}
+
+/* Needed to break long template names*/
+.memItemLeft {
+  white-space: normal !important;
+  word-wrap: break-word;
+}