How to create a fixed background image on a web page

Updated: 04/26/2017 by Computer Hope

Tip: 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 as the bg.gif and then bgproperties="fixed" sets the images a s fixed background that will not scroll.