-
Notifications
You must be signed in to change notification settings - Fork 43.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to align navigation bar to page content? #512
Comments
any update on this? |
I would love to hear any updates on this too |
Adding "padding-left: 1.5em;" into ".masthead__menu-item" in the file "_sass/_masthead.scss" works for me. The code should look as follows, .masthead__menu-item { &--lg { |
Changing I simply needed an extra font size of space to align my masthead: .masthead__menu-item {
display: block;
list-style-type: none;
white-space: nowrap;
&--lg {
- padding-right: 2em;
+ padding-right: 3em;
font-weight: 700;
}
} |
Is it possible to align the navbar items to the right of the page but keep the site title/logo in its default place, aligned left? |
I made the following change to make my page contents align with the nav bar after the sidebar is turned off.
After this is done, it will be applied to the home page. The other pages are of archive layout, so you need to do the same thing at https://github.com/academicpages/academicpages.github.io/blob/master/_sass/_archive.scss#L12-L14 |
I have removed the profile stuff on the side and just want a narrow page. How can I push the navigation bar to the right so that it is in line with the page content at all times?
The text was updated successfully, but these errors were encountered: