• 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

Create background image that adjusts to different screen resolutions?

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 › Create background image that adjusts to different screen resolutions?

This topic is: not resolved

Tagged: background image, background-size, css, outreach, responsive

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 2 months ago by Herman.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 14, 2013 at 10:51 am #62537
    Herman
    Participant

    I replaced the background image behind the slider in Outreach but it won't display correctly in different desktop resolutions.

    Here's the CSS code:

    #inner {
    background: #5282C4 url(images/inner.png) no-repeat center center;;
    clear: both;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 0;
    }

    Any solutions?

    http://www.washdcfamilyfed.org/
    September 15, 2013 at 8:25 pm #62751
    ramseyp
    Member

    Herman,

    You can add background-size: 100% auto; to that style declaration.

    #inner {
    background: #5282C4 url(images/inner.png) no-repeat center center;;
    clear: both;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 0;
    background-size: 100% auto;
    }

    Community • Work • Conversations

    September 15, 2013 at 8:39 pm #62752
    nunotmp
    Member

    You can use a background size of cover. something like this

    
    #inner {
    background: #5282C3 url(images/inner.png) no-repeat center center;
    clear: both;
    margin: 0 auto;
    overflow: hidden;
    padding: 30px 0;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    

    This will adjust to all screen sizes and uses the necessary browser prefixes.


    Genesis Child Themes – Follow Me

    September 16, 2013 at 7:29 am #62811
    Herman
    Participant

    Thanks a lot ramseyp and nunotmp. I decided to go with nunotmp css code. Please check if the image displays correctly in your browser.

    http://www.washdcfamilyfed.org/

    Here's my follow-up question:
    Should I decrease the size of the image or align the monument and church differently on the blue background?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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