• 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 / How do I reduce the margins around my custom logo header?

How do I reduce the margins around my custom logo header?

  • Unknown's avatar
    whodhavethought · Member · Feb 11, 2013 at 6:51 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I would like to reduce the amount of white space (margins), top and bottom of my header logo. How do I do this? The blog in question is http://blog.whodhavethought.com. Many thanks, Jane

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

  • Unknown's avatar
    dcoleonline · Staff · Feb 11, 2013 at 10:57 pm
    • Copy link Copy link

    Try using this CSS code. It should keep the space to the left and right of your logo, while removing the top and bottom spacing.

    #header {0px 30px;}

    One thing to note is that since your image itself includes a large white background which surrounds the actual logo, doing this won’t result in a drastic change. You might actually need to edit the image itself, by cropping off some of the top and bottom in order to have a shorter header to your site.

  • Unknown's avatar
    dcoleonline · Staff · Feb 11, 2013 at 10:58 pm
    • Copy link Copy link

    Sorry, a quick correction here:
    #header {padding: 0px 30px;}

    There, that should do it.

  • Unknown's avatar
    whodhavethought · Member · Feb 12, 2013 at 12:58 am
    • Copy link Copy link

    Thanks for your help – it’s looking better now. The only thing is it’s a bit left of centre even though I have centred it. Is there any way around this? Thanks, Jane

  • Unknown's avatar
    dcoleonline · Staff · Feb 12, 2013 at 1:17 am
    • Copy link Copy link

    No problem. It looks like when you used the newer, smaller image, it wasn’t the full width of the available space, so it’s left aligned. This likely happens by default.

    Anyway, this should get you what you need:
    #title-logo {text-align:center;}

  • Unknown's avatar
    whodhavethought · Member · Feb 12, 2013 at 1:26 am
    • Copy link Copy link

    Fantastic – its worked! Thanks so much for your help.

  • Unknown's avatar
    dcoleonline · Staff · Feb 12, 2013 at 3:44 pm
    • Copy link Copy link

    No problem!

  • The topic ‘How do I reduce the margins around my custom logo header?’ is closed to new replies.

Tags

  • custom logo
  • Header
  • linen
  • margins
  • Premium Theme

About this topic

  • In: CSS Customization
  • 2 participants
  • 6 replies
  • Last activity 13 years
  • Latest reply from whodhavethought

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
  • Privacy
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions