WordPress.org

Ready to get started?Download WordPress

Forums

one background image (2 posts)

  1. brit
    Member
    Posted 6 years ago #

    Hi there

    I have got a WordPress theme and i have changed the background image, i added some code to the stylesheet.css to make the image width and height 100% and to not repeat.

    The 100% width worked, but the height did not and the image still repeats, i have tried different ways of coding the stylesheet.css to see if it would work, but nothing made a difference.

    I was wondering if it is possible to have one image that was 100% in width and height that did not repeat, so as i scroll down the page, it is the blog that scrolls not the background as well.

    Thanks for any help

  2. oftenk
    Member
    Posted 6 years ago #

    To fix the background so it doesn't scroll, throw this bit of code in with the rest of the background properties:

    background-attachment: fixed;

    That should do the trick.

Topic Closed

This topic has been closed to new replies.

About this Topic