• WordPress.com
  • Forums
  • Plans & Pricing
  • Log In
  • Get Started
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress
Get Started
  • Sign Up
  • Log In
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • Enterprise
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Support
  • News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Popular Topics
  • Daily Webinars
  • Learn WordPress

WordPress.com forums

Get help with WordPress.com, the free blogging platform, and the WordPress.com apps.

en WordPress.com Forums How do I reduce the margins around my custom logo header?

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

  • 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)

  • 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.

  • 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.

  • 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

  • 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;}

  • whodhavethought · Member · Feb 12, 2013 at 1:26 am
    • Copy link Copy link

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

  • 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 12 years
  • Latest reply from whodhavethought
Advertisment

WordPress.com

WordPress.com WordPress.com Logo

Products

  • WordPress Hosting
  • Domain Names
  • Website Builder
  • Create a Blog
  • Professional Email
  • P2: WordPress for Teams
  • Website Design Services
  • Enterprise Solutions

Features

  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps

Resources

  • WordPress.com Support
  • WordPress Forums
  • WordPress News
  • Website Building Tips
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
  • Daily Webinars
  • Learn WordPress
  • Developer Resources

Company

  • About
  • Partners
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users

Language

Mobile Apps

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

Social Media

  • WordPress.com on Twitter Twitter Icon
  • WordPress.com on Facebook Facebook Icon
  • WordPress.com on Instagram Instagram Icon
  • WordPress.com on YouTube Youtube Icon
An Automattic joint
Work With Us
    • WordPress.com Forums
    • Customize
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions