Centering menu in Hemingway theme
-
I know there are a million topics about this, but nothing I’ve tried has worked.
I’m trying to center the menu, which currently aligns left. The code for the navigation menu is:
.blog-menu li { position: relative; } .blog-menu > li { float: left; } .blog-menu > li:before { content: "/"; display: block; position: absolute; left: 0; top: 50%; margin-top: -9px; margin-left: -3px; font-size: 16px; color: #444; font-weight: 300; z-index: 1000; } .blog-menu > li:first-child:before { content: none; } .blog-menu a { display: block; padding: 27px 20px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-size: 13px; } .blog-menu a:hover, .blog-menu .current-menu-item a { color: #FFF; } .blog-menu > .has-children a, .blog-menu > .page_item_has_children a { padding-right: 35px; } .blog-menu > .has-children::after, .blog-menu > .page_item_has_children::after { content: ""; display: block; border: 5px solid transparent; border-top-color: rgba(255,255,255,0.4); position: absolute; z-index: 1001; right: 17px; top: 50%; margin-top: -2px; } .blog-menu > .has-children:hover::after, .blog-menu > .page_item_has_children:hover::after { border-top-color: #FFF; } .blog-menu li:hover a { background-color: #1D1D1D; cursor: pointer; } .blog-menu li:hover > a { color: #FFF; }
However, I could be looking in the wrong place. I’m new at this. I’m just not sure where else the changes should go. I also am already using a child theme.
The link to my site is https://www.therailyardloft.com. Can anyone help me out?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Centering menu in Hemingway theme’ is closed to new replies.