• 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 / Center Logo Image on Custom CSS

Center Logo Image on Custom CSS

  • Unknown's avatar
    saskiastarck · Member · Feb 7, 2015 at 1:10 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I have been trying for the last three hours to centre my logo image via CSS. I have tried numerous codes and none seem to work. I have never used CSS before so I honestly have no idea if what I am doing is even correct.

    I am using a Mac and I right clicked on my image and went to inspect element where I selected the CSS code for the image. From there I added in below that code:

    img.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }x

    to try and centre the image. Nothing seems to be working. PLEASE HELP ME!

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

  • Unknown's avatar
    staff-happychia · Staff · Feb 7, 2015 at 5:39 am
    • Copy link Copy link

    Could you please add logo to your blog so I can help you with the CSS to center it.

  • Unknown's avatar
    saskiastarck · Member · Feb 7, 2015 at 7:18 am
    • Copy link Copy link

    I just added it then. Thank you!!

  • Unknown's avatar
    staff-happychia · Staff · Feb 7, 2015 at 7:46 am
    • Copy link Copy link

    Could you add these styles and let me know what you think:

    .wf-active #site-header h2.site-description {
        display:none;
    }
    
    #site-header {
      width: 100%;
      max-width: 100%;
      text-align: center;
      clear:right;
    }
    
    h1.site-title:after {
        display: block;
        content: "Journalist, Fashion lover, Global traveller";
    }
  • Unknown's avatar
    saskiastarck · Member · Feb 7, 2015 at 7:49 am
    • Copy link Copy link

    That looks awesome! However, is there any chance to just centre the image? I kind of liked the text Saskia Starck – Journalist, Fashion Lover, Global Traveller – when it was to the left hand side.

    Seriously thank you so so so much!!!

  • Unknown's avatar
    staff-happychia · Staff · Feb 7, 2015 at 8:31 am
    • Copy link Copy link

    Remove everything I gave you earlier and add this now:

    .wf-active #site-header h2.site-description {
        display: none
    }
    
    #site-header {
        width: 100%;
        max-width: 100%;
        text-align: center;
        clear: right
    }
    
    h1.site-title a{
           display: block;
            text-align: left;
    }
    h1.site-title:after {
        display: block;
        content: "Journalist, Fashion lover, Global traveller";
         text-align: left;
    }
  • Unknown's avatar
    saskiastarck · Member · Feb 7, 2015 at 9:07 am
    • Copy link Copy link

    THANK YOU SO MUCH! That has finally made it work!

  • Unknown's avatar
    staff-happychia · Staff · Feb 7, 2015 at 9:16 am
    • Copy link Copy link

    You are welcome :-)

    Happy blogging.

  • The topic ‘Center Logo Image on Custom CSS’ is closed to new replies.

Tags

  • center
  • CSS
  • logo
  • WordPress

About this topic

  • In: CSS Customization
  • 2 participants
  • 7 replies
  • Last activity 11 years
  • Latest reply from saskiastarck

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