WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Fixed Background

By Eddy R.
5-29-00

Have you ever seen web pages where the text is the only thing that moves as you scroll down? If not, you'll se what I'm talking about in a little while. If so, and you've asked how it's done, you are in luck because I'll go ahead and show you how to accomplish the effect in two different ways.

BACKGROUND PROPERTIES

This is the easiest way to accomplish the fixed background effect, simply add the following code inside the BODY tag of your document.

bgproperties="fixed"

<body bgproperties=fixed background="/images/your_graphic_file.gif">

STYLE SHEETS

You can also use style sheets to accomplish this effect, like so.

<STYLE type="text/css">
<!--
body
{
background-image:URL(http://www.yoursite.com/images/your_graphic_file.gif);
background-attachment:fixed;
}
-->
</STYLE>

This code goes in the BODY of your document.

Unfortunately, Netscape 4 and previous versions do not support either format - that is the background properties and style sheets, however Netscape 6 promises to support CSS so the fixed background effect should work on it just fine.

SEE IT IN ACTION

BGPROPERTIES

STYLE SHEETS

.

 

More Resources
Link Underlines
Adding Style Sheets with Dreamweaver
Mouse Hover

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.