Hello,
I am having another issue with my technical documentation page.
On my technical documentation page, I have a fixed side navigation bar. To the right I have my main, which is held in place with a 405 pixel margin. My main has a max-width of 1280 pixels because I don’t want to strain the user by reading across the page. If the text were 100% of the width, the paragraphs would be stretched onto one line on 4k displays (The display I am using).
The issue is that this leaves a massive gap to the right of the main, which does not look good.
I am wondering if there is anyway I can center my main, while still keeping the 405 pixel minimum margin to the left to prevent the nav overlap?
This can relate back to a previous post on keeping my navbar in the document flow (link).
The issue is that my navigation bar is out of the normal flow of the document. The main will go underneath the navigation bar if not for the margin. However, If I try to flex my body into a row and put the items in the center;
The navigation bar is still moved to overlap the main content.
I can’t use margin: 0 auto;
because the auto part does not allow for custom left or right margins.
TD:LR; Need help to center the main in the area that the navbar does not cover while preventing overlap.
Any ideas?