• 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 / Border on Logo header (CSS code)?

Border on Logo header (CSS code)?

  • Unknown's avatar
    davidjohnveitch · Member · Oct 21, 2017 at 2:51 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Looking to adjust the borders (height in px) of my logo at the header of my page. Basically make them narrower?

    Can anyone help with the CSS code please?

    Thanks

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

  • Unknown's avatar
    krutidugade · Member · Oct 21, 2017 at 3:50 pm
    • Copy link Copy link

    Hi Dave,

    I failed to spot any border surrounding your Logo. Could you help me out with the link of the page you see border.

    Or it’d be great if you can share a screenshot of what you’re seeing. If you need some help with that, you can refer this page – https://www.take-a-screenshot.org

  • Unknown's avatar
    davidjohnveitch · Member · Oct 21, 2017 at 3:53 pm
    • Copy link Copy link

    Hi

    Sorry my wording wasn’t clear before, the gap above my logo is there a way to make it narrower so my logo appears closer to the top of the page?

    Thanks

  • Unknown's avatar
    krutidugade · Member · Oct 21, 2017 at 4:19 pm
    • Copy link Copy link

    Hey Dave,

    Thanks for explaining. You can add the following CSS code to narrow the gap above the logo.

    .header {
        padding: 10px;
    }

    The above code will narrow the gap above the logo but will increase the gap between header and navigation menu. Adding following CSS code will maintain the look and feel of your site.

    .header {
        padding: 10px;
        height: 125px;
    }

    You can choose the code which suits you the best. Also, you can change the pixel values as per the border you desire.

    Let me know if this works for you :)

  • Unknown's avatar
    davidjohnveitch · Member · Oct 21, 2017 at 4:42 pm
    • Copy link Copy link

    yes works perfectly! Thank you :)

  • The topic ‘Border on Logo header (CSS code)?’ is closed to new replies.

Tags

  • border
  • Header
  • logo
  • px
  • size

About this topic

  • In: CSS Customization
  • 2 participants
  • 4 replies
  • Last activity 8 years
  • Latest reply from davidjohnveitch

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