Support » Themes and Templates » one background image

  • 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

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘one background image’ is closed to new replies.