• 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

Outreach child theme, fixed background image

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 › Outreach child theme, fixed background image

This topic is: resolved
  • This topic has 5 replies, 4 voices, and was last updated 12 years, 6 months ago by jtikcuf.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 7, 2013 at 5:15 pm #18778
    ACEkin
    Participant

    I want to have the background image in the content part not to scroll. If I add the necessary declaration as:

    #content {

        background: url("images/st-patrick_bg.png") no-repeat scroll center 80px #FFFFFF;
        border-radius: 5px 5px 5px 5px;
        float: left;
        padding: 30px 40px;
        width: 450px;

    }

    It places the background image in the horizontal center of the content area. But if I change the scroll to fixed, whether I use center or a pixel value, the positioning is done in the browser window width. You can see the scrolling BG at:
    http://www.friendlysonsprov.org/

    I will appreciate assistance with this.

    Cemal

    February 7, 2013 at 6:42 pm #18799
    Tony @ AlphaBlossom
    Member

    Hi Cemal,

    When you set the background-attachment to fixed, by default it "fixes" relative to the viewport, not the container:

    https://developer.mozilla.org/en-US/docs/CSS/background-attachment

    You'd have to use javascript to do it. You can consider using media queries with different css positions for different resolutions, but it's not going to be perfect until you get to full-width content. If you set the left position to 40%, it looks ok for a while. You'd have to play with it and tweak it for various resolutions, probably not the best option.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 7, 2013 at 7:20 pm #18814
    ACEkin
    Participant

    Thank you Tony, it was more a curiosity question than a must have. I will not pursue it.

    Cemal

    February 7, 2013 at 7:21 pm #18815
    Tony @ AlphaBlossom
    Member

    You're welcome, Cemal.


    Tony Eppright | http://www.AlphaBlossom.com | Follow me on twitter @_alphablossom

    February 8, 2013 at 3:08 am #18892
    vajrasar
    Member

    @acekin: Please mark the topic as resolved.


    I make WordPress websites using Genesis Framework.

    WordPress/Genesis Development | Customizations

    January 1, 2014 at 11:47 pm #82625
    jtikcuf
    Member

    how did you do the login? on the side bar nice site!


    Jtikcuf ‘~’

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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

© 2026 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