• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Logo positioning on reactive layout

Logo positioning on reactive layout

  • Unknown's avatar
    marithomas17 · Member · Oct 23, 2017 at 2:52 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi,

    I have a website with a logo and menu on the same line. This menu reduces to a burger menu once the screen gets smaller than desktop size.

    I want to have a logo which is positioned centrally on all of my screens, with either menu layout. Can someone help me please?

    I currently have this CSS code inserted but it doesn’t create a central position on all screens:
    #logo {
    float: left;
    position: relative;
    left: 43%;
    }

    Any help would be much appreciated thanks.

    maaree.com

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    siobhyb · Member · Oct 23, 2017 at 5:35 pm
    • Copy link Copy link

    I’m glad my colleague was able to help with the CSS you need over live chat. :) Please don’t hesitate to start a new live chat with any extra questions.

  • Unknown's avatar
    marithomas17 · Member · Oct 23, 2017 at 6:08 pm
    • Copy link Copy link

    Hi, thanks for your comment but this particular issue was not able to get resolved over chat. If you have any idea how I could achieve this please let me know.

    Thanks

  • Unknown's avatar
    siobhyb · Member · Oct 24, 2017 at 8:48 am
    • Copy link Copy link

    Hi there,

    Thanks for following up and sorry that your answer wasn’t fully resolved! Looking over your existing custom CSS, you’ll first need to remove the following:

    #logo {
        float: left;
        position: relative;
        left: 43%;
    }

    After you’ve removed the above, add the following to centre the logo (and the menu toggle) across all devices:

    #header .five.columns {
        width: 100%;
    }
    
    #header #logo {
        text-align: center;
        padding-left: 0;
        width: 100%;
    }
    
    #header #logo .site-logo-link {
        float: none;
    }
    
    .menu-toggle {
        text-align: center;
        width: 100%;
        padding-right: 0;
    }

    You’ll also need to set the width of the main navigation to 50% for larger devices, so that it never overlaps with the logo:

    @media handheld, only screen and (min-width: 1024px) {
        #navigation {
            width: 50%;
        }
    }

    Hope that’s helpful! Let me know how you get on with the above.

  • Unknown's avatar
    marithomas17 · Member · Oct 25, 2017 at 11:00 am
    • Copy link Copy link

    Thanks so much for your help! I’ve been trying for ages to get this to work and it finally does! YAY! One more thing though if possible? The burger menu has not shifted underneath the logo. Is was inline with the logo (on the far right before). Is it possible for it to still remain on the upper line? it just makes my header space very thick now :)

    thanks!

  • Unknown's avatar
    siobhyb · Member · Oct 25, 2017 at 1:39 pm
    • Copy link Copy link

    I’m glad that helped!

    To move the hamburger menu to the upper right on mobile, first remove the following custom CSS that I provided:

    .menu-toggle {
        text-align: center;
        width: 100%;
        padding-right: 0;
    }

    And replace it with the following:

    .menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
    }

    Let me know how that goes. :)

  • The topic ‘Logo positioning on reactive layout’ is closed to new replies.

Tags

  • central
  • Layout
  • logo
  • reactive

About this topic

  • In: CSS Customization
  • 2 participants
  • 5 replies
  • Last activity 8 years
  • Latest reply from marithomas17

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions