How to create a fixed background image on a web page

Updated: 12/31/2017 by Computer Hope

We recommend you use the CSS solution to create a non-titled background image. This page only covers how to do create a fixed background in the HTML BODY tag, which is now deprecated.

Add the BGPROPERTIES="FIXED" code into the body statement as shown below. Next, add the BACKGROUND="" portion to the body tag and point to the image location.


In the above example, background="bg.gif" is setting the background picture using the bg.gif and then bgproperties="fixed" sets the images as a fixed background that will not scroll.