Community Forums › Forums › Design Tips and Tricks › SAMPLE THEME – How do i center navigation text?
This topic contains 8 replies, has 4 voices, and was last updated by David Chu 3 months, 3 weeks ago.
-
AuthorPosts
-
January 27, 2013 at 12:14 am #15248
I would like to know how to center the navigation text in the sample theme, i tried text-align:center; in a few different parts but it’s not working. Please can anyone help?
January 27, 2013 at 11:54 am #15347Try this tutorial:
you need to look for: #nav
#nav{text-align:center}If you tried this, and it didn’t work (after clearing your cache), can you please post a link to your site, so we can look at the code. Thanks.
Susan @ Graphically Designing I’d love to customize your website! I tweet!
I’ve taken up the challenge! – help me answer some of the unanswered postsJanuary 27, 2013 at 2:16 pm #15391Nope that didn’t work there is no nav or subnav in the css this is the link to the site
January 27, 2013 at 3:40 pm #15419You’ll have to play around with it, but you could start with adding something like this:
.genesis-nav-menu {
clear: both;
margin: 20px auto;
overflow: hidden;
width: 55%;
}For the margin, you can use any number for the top/bottom – I just happened to use 20px.
Ideally, you’ll need to add a structure wrap so that the black background can stretch from edge to edge…. Let me do a little looking to see what I can come up with. I’ll be back.
Susan Nelson | Oh, Hello Designs | Twitter | Facebook
Community Theme Developer: Pure EleganceJanuary 27, 2013 at 3:42 pm #15421Oops – double post.
Susan Nelson | Oh, Hello Designs | Twitter | Facebook
Community Theme Developer: Pure EleganceJanuary 27, 2013 at 6:00 pm #15448From my friend @bradleypotter:
Apply text-align: center; to .genesis-nav-menu and remove float:left from .genesis-nav-menu ul and .genesis-nav-menu li
Susan @ Graphically Designing I’d love to customize your website! I tweet!
I’ve taken up the challenge! – help me answer some of the unanswered postsJanuary 28, 2013 at 8:41 am #15551Thanks so much susan that worked perfect! And thank your friend bradley for me! And thank you to the other susan for your help!
January 28, 2013 at 9:14 am #15556Thanks for letting us know – I passed your thanks along to Bradley, too!
Closing this thread as resolved – please start another thread if you have another question.
Susan @ Graphically Designing I’d love to customize your website! I tweet!
I’ve taken up the challenge! – help me answer some of the unanswered postsJanuary 28, 2013 at 9:14 am #15557Hi All,
I used this method for centering my menu and it worked just fine. However, if you only follow what’s in the article, dropdowns will be messed up. I fixed that, too – you can see what I did if you look for “dave” in the comments.
Your mileage may vary slightly, but my own base theme is based on Sample, so it should be pretty close. Hope this helps someone!
Ciao, Dave
David Chu · Genesis Custom Theme Development
-
AuthorPosts
The topic ‘SAMPLE THEME – How do i center navigation text?’ is closed to new replies.