Support » Themes and Templates » Centering Menu Items (Squirrel Theme)

  • Hi all,

    I am trying to center the menu items in the Squirrel website theme at wholesale used books.

    I removed the float: left attriubute but still can’t seem to center it.

    CSS is as follows:

    .menu_wrapper {
    #menu {
    #menu li {
    #menu li a {
    padding:3px 8px;
    color: #fff;

    Thanks for your help!


Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins


    Forum moderator

    Consider this article on Centering Things, but generally CSS support this specific is not supported from WordPress forums and ought to be asked in CSS-specific forums.

    Thanks for this Andrew,

    Have attempted to implement some changes based on the CSS article but no joy at present.

    I had seen a few other posts on the forums before posting this one covering similar problems, but none of the suggestions worked for me.

    #menu {
    text-align: center;
    #menu li {
    float: none;
    display: inline;

    Thanks Ivo,

    Afraid that didn’t work.

    It changed the text to black & all items in the dropdown displayed as bullet points. All remained aligned to the left.

    There’s not an easy or simple way to do what you want — probably the best way, unless you want to do major recoding of that section of the page, is to change the padding-left in this CSS:

    #menu .ddsmoothmenu {
        background: none repeat scroll 0 0 #373737;
        float: left;
        padding-bottom: 5px;
        padding-left: 150px;
        width: 950px;

    You’ll have to adjust it if you add any other menu items. It’s also not recommended to make changes in any theme files — but to rather use a child theme or custom CSS option or plug-in.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Centering Menu Items (Squirrel Theme)’ is closed to new replies.