Hide navigation sidebar contents but retain the whitespace? #3547
-
Along similar lines as #3405, is it possible to hide the contents of the navigation but retain the whitespace of the sidebar? Most of my pages show the navigation and table of contents Some pages have only themselves in the navigation Some pages have lots of entries in the navigation but the page is playing the role of the navigation I know I can hide the navigation but when I do the main content shifts left, which is a little jarring when you go from page to page and the content shifts around. Is it possible to Hide the navigation sidebar contents but retain its whitespace? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, achievable with CSS: /* Navigation sidebar */
.md-nav--primary {
display: none
}
/* Table of contents sidebar */
.md-nav--secondary {
display: none
} |
Beta Was this translation helpful? Give feedback.
Yes, achievable with CSS: