diff --git a/docs/_templates/indexsidebar.html b/docs/_templates/indexsidebar.html
index 0046f10b21f..3500403deb1 100644
--- a/docs/_templates/indexsidebar.html
+++ b/docs/_templates/indexsidebar.html
@@ -13,10 +13,10 @@
Additional Links
diff --git a/docs/_themes/llvm-theme/static/llvm-theme.css b/docs/_themes/llvm-theme/static/llvm-theme.css
index beab2ca2512..4b04e0cbacc 100644
--- a/docs/_themes/llvm-theme/static/llvm-theme.css
+++ b/docs/_themes/llvm-theme/static/llvm-theme.css
@@ -24,7 +24,6 @@ body {
color: black;
padding: 0;
border: 1px solid #aaa;
-
margin: 0px 80px 0px 80px;
min-width: 740px;
}
@@ -50,6 +49,7 @@ div.bodywrapper {
div.body {
margin: 0;
padding: 0.5em 20px 20px 20px;
+ max-width: 1000px;
}
div.related {