How to make a background image static

How do you make your website background stay static when the page scrolls? I am new to website design that’s why I joined. Thank you!

Hi @benjaminjones. Welcome to the forums. :smile:

You can set your background image to fixed. E.g.

body {background: url(/images/background.jpg) no-repeat fixed 50% 0;}
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.