WordPress.com

Menu
  • Themes
  • Support
  • Forums
  • Blog
  • Features
  • Sign Up
  • Log In

Need help? Check out our Support site, then

en WordPress.com Forums › CSS Customization

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

  • Author
    Posts
  • February 11, 2013 at 6:51 am #1151612

    whodhavethought
    Member

    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 blog.whodhavethought.com.

    February 11, 2013 at 10:57 pm #1151809

    dcoleonline
    Staff

    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.

    February 11, 2013 at 10:58 pm #1151810

    dcoleonline
    Staff

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

    There, that should do it.

    February 12, 2013 at 12:58 am #1151814

    whodhavethought
    Member

    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

    February 12, 2013 at 1:17 am #1151816

    dcoleonline
    Staff

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

    February 12, 2013 at 1:26 am #1151817

    whodhavethought
    Member

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

    February 12, 2013 at 3:44 pm #1151821

    dcoleonline
    Staff

    No problem!

  • Author
    Posts

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

About This Topic

  • Started 5 years by whodhavethought
  • In: CSS Customization
  • This topics has 6 replies
  • 2 participants
  • Latest reply from dcoleonline
  • Last activity: 5 years

Tags

  • custom logo
  • Header
  • linen
  • margins
  • premium-theme

Get Started

Create your own website

An Automattic Opus

Do More

  • Features
  • Store
  • Themes
  • Developers

Community

  • Support
  • Forums
  • WordCamps
  • Blog at WordPress.com.

Company F • T

  • Our Story
  • Privacy
  • Terms of Service
  • Matt Mullenweg
  • We are hiring PHP developers. Join us!