Everyday Computing Advanced Computing The Internet At Home Health, Mind & Body Making & Managing Money Sports & Leisure Travel Beyond The Classroom
Building Web Sites
Doing Business Online
Graphics & Animation
Using the Internet
Moms, Dads, and Grads -- Win $500!
The Internet GigaBook For Dummies
Applying an Image Background to Your Web Site
Adapted From: The Internet GigaBook For Dummies

In addition to using simple colors for backgrounds, you can use images as backgrounds. To do so, you specify a URL pointing to an image for the BACKGROUND attribute of the <BODY> tag. You can specify a relative URL or an absolute URL:

  • A relative URL points to a file located in or below the same directory as the Web page.
  • An absolute URL points to a file located anywhere on your computer.

Let's say you had a star graphic that you've uploaded to your Web page directory that you wanted to use as the background (and you've named the graphic star.gif. Here's the code you'd use to specify that image for the background:

<BODY BACKGROUND="star.gif">

Don't forget that in your code, like any element, you'll eventually need to close the body tag.

Background images that don't fill the entire background are tiled to cover all available space -- that is, copies of the image are automatically placed together, like a tile floor. If you choose a background image that's a star, for example, there is really only one star, but the browser makes the copies automatically.


To find out how to have Dummies eTips delivered to your e-mail inbox every week, visit the Dummies eTip Sign-Up Page.
Related Articles
Dreamweaver to Fireworks: Image Editing
Applying Web Site Themes via FrontPage 2003
Noting What's New in Dreamweaver MX 2004
Avoiding Web Design Blunders
Hosting Your Web Site
Related Titles
Adobe Creative Suite 3 Design Premium All-in-One Desk Reference For Dummies
Building Flash Web Sites For Dummies
Adobe Creative Suite All-in-One Desk Reference For Dummies
FrontPage 2003 All-in-One Desk Reference For Dummies
Macromedia Studio 8 All-in-One Desk Reference For Dummies