diff --git a/src/librustdoc/html/static/noscript.css b/src/librustdoc/html/static/noscript.css
index 4a434d49e4dfe..832bd9ba2d628 100644
--- a/src/librustdoc/html/static/noscript.css
+++ b/src/librustdoc/html/static/noscript.css
@@ -5,3 +5,11 @@
.loading-content {
display: none;
}
+
+#main > h2 + div, #main > h3 + div {
+ display: block;
+}
+
+#main > h2 + h3 {
+ display: flex;
+}