• 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 / My logo is cut off

My logo is cut off

  • Unknown's avatar
    downrivershape · Member · May 23, 2014 at 2:38 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    How do I move the Site Title over so that the logo doesn’t get cut off as it appears right now?

    The CSS I have for getting them in the same line is as follows:

    /* ===== begin logo ===== */
    
    .site-header h1 a:before {
    	content: "";
    	display: block; width: 48px; height: 48px;
    	margin: 0 auto 12px;
    	background-image: url(http://downrivershape.files.wordpress.com/2014/05/downriverstred29ar04bp01zl-grant4b.png
    			);
    	background-size: cover;
    }
    .site-header h1 { margin-bottom: 0; }
    
    @media screen and (min-width: 300px) {
    	.site-header h1 a:before {
    		width: 100px; height: 100px;
    		position: absolute; top: 0; left: -120px;
    	}
    	.site-title, .site-description { position: relative; margin-left: 100px; }
    }

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

  • Unknown's avatar
    thesacredpath · Member · May 26, 2014 at 6:49 pm
    • Copy link Copy link

    Hi there, I see the logo gets cut off at about 600px in screen/browser window width. Replace the CSS you have now with the following which addresses that mainly by using background size “contain” instead of cover. I’ve also included a second media query to center the site title and description at 599px and below so that it looks more balanced with the centered logo above. See what you think when you try this and narrow down your browser window.

    /* ===== begin logo ===== */
    .site-header h1 a:before {
        background-image: url("//downrivershape.files.wordpress.com/2014/05/cropped-downriverstred29ar04bp01zl-grant4b_mdm.jpg");
        background-repeat: no-repeat;
        background-size: contain;
        content: "";
        display: block;
        height: 100px;
        margin: 0 auto 12px;
        width: 130px;
    }
    
    .site-header h1 {
    	margin-bottom: 0;
    }
    
    @media screen and (min-width: 600px) {
    	.site-header h1 a:before {
    		width: 150px;
    		height: 100px;
    		position: absolute;
    		top: 0;
    		left: -160px;
    	}
    
    	.site-title, .site-description {
    		position: relative;
    		margin-left: 120px;
    	}
    }
    @media screen and (max-width: 599px) {
        .site-title, .site-description {
            text-align: center
        }
    }
    /* ===== end logo ===== */
  • The topic ‘My logo is cut off’ is closed to new replies.

Tags

  • CSS
  • logo
  • motif
  • site title

About this topic

  • In: CSS Customization
  • 2 participants
  • 1 reply
  • Last activity 12 years
  • Latest reply from downrivershape

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