Centering Navigation Menu for Hemingway Rewritten Theme
-
Would anyone know how to center the primary navigation bar for the Hemingway Rewritten theme? The menu options seemed to be aligned left, and I would like theme centered on the page.
Here is a link to my website:
http://www.zacharynlu.comThank you for your help!
The blog I need help with is zacharynlu.com.
The blog I need help with is: (visible only to logged in users)
-
Please try this CSS and see if you like the result:
@media screen and (min-width: 1020px) { .main-navigation ul { padding-left: 202px; } } -
-
Oh, I actually got it to work! Just a note, I just changed the “padding-left” value from 202px to 245px to be a little more centered. Thanks for your help!
-
Actually, there’s a small problem, the sub-menus are not aligned to their main header menus anymore. How would I go about fixing that?
-
Oops, my bad. I did not notice it when I came up with the CSS.
To fix this, lets remove ul from the rule so the CSS would be:
@media screen and (min-width: 1020px) { .main-navigation { padding-left:245px } } -
- The topic ‘Centering Navigation Menu for Hemingway Rewritten Theme’ is closed to new replies.