WordPress.org

Ready to get started?Download WordPress

Forums

Portfolio Press
Centering Menu and logo (7 posts)

  1. zwiechert
    Member
    Posted 1 year ago #

    I am wondering what I need to do to center the menu bar when it is under the logo, as well as centering the logo. I am looking for a more uniform look. thanks in advance!

  2. CherylS
    Member
    Posted 1 year ago #

    Please post a link to your site

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    Download & install this Custom CSS Manager.
    Then, within its Custom CSS Manager section of the dashboard, enter this;

    #navigation,
    #logo {
     float: none;
    }
    
    #logo {
     text-align: center;
    }
    
    #navigation ul {
     display: table;
     margin: 0 auto;
    }

    Any changes made to the theme's files will be lost when the theme updates.

  4. Tareq
    Member
    Posted 1 year ago #

    You could also do this:

    #header, #logo {
    margin: 0 auto;
    }

    in you main css file.

    Tareq

  5. CherylS
    Member
    Posted 1 year ago #

    But if the header is not full width, centering it will only center it in the width allowed by that area. If we had a link to the site, we could be determine what it is zwiechert is trying to accomplish.

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Most of the time you can get away with testing solutions to the problem on the theme's demo website. If then the solutions don't work, you can always ask for a link to the site.

    The demo site: http://themes.wptheming.com/portfolio/

    Of course it would be helpful if the link was provided to begin with.

    @worthingtech, Auto margins don't work against floats.

  7. Tareq
    Member
    Posted 1 year ago #

    @Andrew - True, my bad!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic