WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Make Stationary Background Page (3 posts)

  1. SayUncle1
    Member
    Posted 5 years ago #

    This is for http://www.SayUncleInc.com

    Hello-
    I'm trying to make the background on the website stationary by stopping it tiling across the home page, and make it stationary across all my other tabs (features/ radio etc).

    I've tried to follow this Style code below, but no matter where I place it in the CSS I can't get the home page to stop tiling or make the image stationary on the other pages.

    Any advice would be helpful, thanks.

    <STYLE TYPE="text/css">
    <!--
    BODY { background-image: url(yourimage.jpg) }
    BODY { background-repeat: no-repeat }
    BODY { background-position: center }
    -->
    </STYLE>

  2. blogmum
    Member
    Posted 5 years ago #

    You need
    background-attachment: fixed
    to stop the scrolling (which I assume is what you mean by make it stationary?)
    have a read here.
    http://www.w3schools.com/css/css_background.asp

  3. SayUncle1
    Member
    Posted 5 years ago #

    Yes, it was for the scrolling.
    Got it to work, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic