Saturday, November 14, 2009

Creating Still background image for a web page through CSS

If you want a background image that remains still while scrolling the web page window, you can do it in few simple steps.

Create a Class in style-sheet having properties:-
1)background-attachment : fixed;
2)background-repeat : no-repeat;
3)background-image : URL (URL of the image);

now use that class in the body tag.

No comments:

Post a Comment