Forums

Centralize TwentyTen Menu (6 posts)

  1. John W M
    Member
    Posted 1 year ago #

    Hi,

    The default menu (the horizontal one under the header image) for the TwentyTen theme is floated to the left.

    Is there any way I can center the menu?

    I tried to add the following to the stylesheet but it did not work:

    #access .menu-header ul,
    div.menu ul {
    	list-style: none;
    	margin: 0;
    	position: relative;
    	text-align:center;
    }

    Anyone has ideas? Thanks!

  2. Root
    Member
    Posted 1 year ago #

    You might need to center the access div........

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Don't edit the Twenty Ten theme! Your customisations will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

  4. Root
    Member
    Posted 1 year ago #

    Yeah sure. In yr child theme center div#access...........grrrrrrrr

  5. John W M
    Member
    Posted 1 year ago #

    In the end this worked for me:

    #access .menu-header,
    div.menu {
    	font-size: 13px;
    	margin-left: 155px;
    	width: 785px;
    }

    I had trouble centering the access div. Maybe it's because #access itself and #access .menu-header li is floated left?

    Child themes... interesting... I've never considered it. Always did the manual upgrade so I never had my customizations erased.

  6. Root
    Member
    Posted 1 year ago #

    Child themes are the way to go IMHO. They are gaining fast in understanding, support and info. The benefits are enormous.

Topic Closed

This topic has been closed to new replies.

About this Topic