• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Max Width for Background Image in Header

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Max Width for Background Image in Header

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years, 4 months ago by Derek.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 25, 2013 at 1:04 pm #52475
    shapesnpixels
    Member

    I am using Minimum theme and have applied a background to #title-area and display:none to the title text that appeared there. I've made some other tweaks in the CSS to make it display properly on all the responsive variations except the logo doesn't scale when the screen gets narrower than the logo itself.

    The image is 600 px wide and it's a background image.

    Can we make it scale down when the screen is less then 600px wide?

    #header {
    	background-position: top center!important;
    	margin: 0 auto;
    	min-height: 60px;
    	overflow: hidden;
    	width: 1140px;
    }
    
    #title-area {
    	float: left;
    	overflow: hidden;
    	width: 600px;
      background: url('http://www.campkingpits.com/wp-content/uploads/2013/07/Camp-King-Header.gif') no-repeat;
      height: 100px;
    }
    
    #title {
    	font-family: 'Open Sans', sans-serif;
    	font-size: 30px;
    	font-weight: 700;
    	line-height: 1;
    	margin: 15px 0 10px;
    	text-transform: uppercase;
    }
    
    #title a,
    #title a:hover {
    	color: #3e3e3e;
    	text-decoration: none;
      display: none;
    }
    
    #description {
    	display: none;
    }
    
    #header .widget-area {
    	float: right;
    	width: 500px;
      padding-top: 30px;
    }
    July 28, 2013 at 11:34 pm #53033
    Derek
    Member

    Try using the background-size: contain: property on the background image when the browser window is less than 600px: http://www.w3schools.com/cssref/css3_pr_background-size.asp


    Derek Rippe – CSS Artist & Genesis Fanboy @ SynaVista and MediaCairn Design Studio
    Figure out your CSS problems with Firebug | Check out my Custom Comment Form Title plugin

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble