Stationary Background

Read this tip to make your life smarter, better, faster and wiser. LifeTips is the place to go when you need to know about Navigation and other Html topics.

How do I keep the background from moving when scrolling?

Stationary Background

If you have a particular background image that you'd like to use on your site, but don't like the way that it looks on long pages because it gets tiled by browsers, here's help.

Add the "bgproperties" attribute to the <BODY> tag in your page. Here's an example <BODY> tag:

<BODY background="image.gif" bgproperties="fixed">

This makes the background stationary and only the text will move when users scroll up and down your page.

   

Comments

3/12/2009 8:31:50 PM
Neal said:

Hey, thanks alot this worked perfectly for me.




Name:


URL: (optional)


Comment:


Not finding the advice and tips you need on this Html Tip Site? Request a Tip Now!


Guru Spotlight
Lynne Christen