• 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

Background-image reference seems to cause problems

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 › General Discussion › Background-image reference seems to cause problems

This topic is: resolved

Tagged: background image, css, Div, image, Wordpress

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by Susan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 1, 2015 at 10:05 am #146375
    Christian-wa
    Member

    Hey Community,

    now, I am working for quite a while to adjust my site's look. Of course it's based on the Genesis Framework and the Genesis Sample Theme.
    Well, to make long things short, I created a div and attached a background-image to it.
    But! here is the thing. The image has a resolution of 900px 2000px, but it isn't displayed in it's original resolution. It's way smaller than original.
    I consider the code to be clean and right and thought about, that the reference URL of my image is (maybe) wrong.
    Well, when I view my image with the reference URL it's smaller resolution, only when I then click on the image it changes to the right resolution. But is this normal?
    I even don't know, if I made my point perfectly clear, but I hope so.

    Thanks for your support!

    Site concerned: (already included in the bottom)
    URL of the image (I mentioned):
    http://www.oppars.com/wp-content/uploads/2015/04/Tagesablauf-für-meine-christian-Seite-3.png

    This is the html-code for the div-element:

    <div id="christian-drei-rahmen" align="center" >
    <div id="christian-drei-content">
    </div></div>

    This is the css-code for the whole thing:

    #christian-drei-rahmen {
    	width: 100%;
    	height: auto;
    	background-color: #86d694;
    }
    
    #christian-drei-content {
    	width: 100%;
    	height: 0;
    	background-position: center;
    	background-repeat: no-repeat;
    	background-size: contain;
    	padding-top: 66.64%;
    	background-image: url('http://www.oppars.com/wp-content/uploads/2015/04/Tagesablauf-für-meine-christian-Seite-3.png');
    }

    Having said that, I believe that the code is actually correct, the only thing that isn't working is the image's resolution. So maybe, you guys have a tip for me that opens my eyes to new possibilities. I really could need your support.

    Kind regards,
    Christian 😉


    Life is there to enjoy, everything I tackle therefore reflects that.

    http://www.oppars.com/christian/
    April 12, 2015 at 4:13 pm #147634
    Susan
    Moderator

    I am closing this, as you have marked it "resolved". Please go ahead and start a new thread if you are still having issues.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Background-image reference seems to cause problems’ is closed to new 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