No of visitors who read this post: 607
Category: MS Word
Type: Question
No votes yet

I want to hold the text as stationary while moving its background. Is it possible by using html.

Please provide the code for it. I believe it would bring a very passionate effect on my website.

Thanks in advance.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

# Comment Id: 51543

If you want your background image in your web page to move when you scroll the page either up or down, you can use a CSS file and include this script inside:


This code will make the background image of the page to move or scroll when you scroll the page. You can change the scroll value to fixed if you want to make the background image to stop scrolling and stay as it is.

This CSS script has 3 values: scroll, fixed, and inherit. Here is the script for adding an image as the background of the page:


The file smiley.gif should be replaced with the correct URL of the image, for example smiley.gif.

So, with this URL you will have it as background-image:url(' smiley.gif');.

Sharath Reddy