diff --git a/llvm/docs/_templates/indexsidebar.html b/llvm/docs/_templates/indexsidebar.html
index 0046f10b21f7..3500403deb19 100644
--- a/llvm/docs/_templates/indexsidebar.html
+++ b/llvm/docs/_templates/indexsidebar.html
@@ -13,10 +13,10 @@
Additional Links
diff --git a/llvm/docs/_themes/llvm-theme/static/llvm-theme.css b/llvm/docs/_themes/llvm-theme/static/llvm-theme.css
index beab2ca2512b..4b04e0cbaccf 100644
--- a/llvm/docs/_themes/llvm-theme/static/llvm-theme.css
+++ b/llvm/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 {