Ready to get started?Download WordPress


Clean Black
Centering text in main menu bar (7 posts)

  1. rsanger
    Posted 8 months ago #

    What do I edit in the css to center the text in the menu bar? There is no text align in the nav section so I am assuming there is more to it than that. Any help will be greatly appreciated. Thank you

  2. Andrew
    Forum Moderator
    Posted 8 months ago #

    Where would you make your CSS edits?

  3. Edde Poon
    Posted 8 months ago #

    Do you have a link?

    It probably can be easily done with adjusting padding or even add your own text align.

  4. rsanger
    Posted 8 months ago #

    Thanks for getting back so quick. I just figured it out by adding "allign; center" to #nav, and replacing "float: left" with "display:inline-block" under #nav ul and #nav li

  5. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    Be aware that if you are modifying theme files, you changes will be lost when the theme is updated. Best to use Custom CSS (plugin) or a child theme.


  6. Skysnake
    Posted 5 months ago #

    I have the same problem

    .....Header center, but
    NAVBAR left aligned

    I tried the align: center under #nav above, but no change. its as if it will only sit on the left margin.

    It will be cool to make the navbar follow the header (eg both left, both center etc)


  7. Skysnake
    Posted 5 months ago #

    I centered the navbar menu under the header

    edit the header.php, at the bottom (last three rows). insert

    align=center inside the id=navbar bracket

    <div id="navbarfull"><div id="navbar" align=center><ul id="nav" >

    tested this with Chrome, Internet Explorer and Firefox. Works.

    [RESOVLED] ;-)


You must log in to post.

About this Theme

About this Topic