Sams Teach Yourself HTML 4 in 24 Hours
- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Put Your HTML Page Online Today
- I. Your First Web Page
- Hour 1. Understanding HTML and XML
- Hour 2. Create a Web Page Right Now
- Hour 3. Linking to Other Web Pages
- Hour 4. Publishing Your HTML Pages
- II. Web Page Text
- Hour 5. Text Alignment and Lists
- Hour 6. Text Formatting and Font Control
- Hour 7. Email Links and Links Within a Page
- Hour 8. Creating HTML Forms
- III. Web Page Graphics
- Hour 9. Creating Your Own Web Page Graphics
- Hour 10. Putting Graphics on a Web Page
- Hour 11. Custom Backgrounds and Colors
- Background and Text Colors
- Creating Custom Colors
- Background Image Tiles
- Transparent Images
- Creating Your Own Backgrounds
- Summary
- Q&A
- Workshop
- Hour 12. Creating Animated Graphics
- IV. Web Page Design
- Hour 13. Page Design and Layout
- Hour 14. Graphical Links and Imagemaps
- Hour 15. Advanced Layout with Tables
- Hour 16. Using Style Sheets
- V. Dynamic Web Pages
- Hour 17. Embedding Multimedia in Web Pages
- Hour 18. Interactive Pages with Applets and ActiveX
- Hour 19. Web Page Scripting for Non-Programmers
- Hour 20. Setting Pages in Motion with Dynamic HTML
- VI. Building a Web Site
- Hour 21. Multipage Layout with Frames
- Hour 22. Organizing and Managing a Web Site
- Hour 23. Helping People Find Your Web Pages
- Hour 24. Planning for the Future of HTML
- VII. Appendixes
- A. Readers' Most Frequently Asked Questions
- B. HTML Learning Resources on the Internet
- C. Complete HTML 4 Quick Reference
- D. HTML Character Entities
Creating Your Own Backgrounds
Any GIF or JPEG image can be used as a background tile. Pages look best, however, when the top edge of a background tile matches seamlessly with the bottom edge, and the left edge matches with the right.
If you're clever and have some time to spend on it, you can turn any image into a seamless tile by meticulously cutting and pasting, while touching up the edges. Paint Shop Pro provides a much easier way to automatically make any texture into a seamless tile: Simply use the rectangular selection tool to choose the area you want to make into a tile, and then choose Selections, Convert to Seamless Pattern. Paint Shop Pro crops the image and uses a sophisticated automatic procedure to overlay and blur together opposite sides of the image.
In Figure 11.7 I did this with part of an image of the planet Jupiter, taken from a NASA image archive. The resulting tile—shown as the background of a Web page in Figure 11.8—tiles seamlessly, but has the tone and texture of the eye of Jove himself.
Figure 11.7 Paint Shop Pro can automatically take any region of an image and turn it into a background pattern that can be easily made into tiles.
Figure 11.8 These are the results of using an area of the image in Figure 11.7 as a background image for a Web page.
You'll find similar features in other graphics programs, including Photoshop (use Filter, Other, Offset with Wrap Turned On), Kai's Power Tools, and the Macintosh programs Mordant and Tilery.
Todo To Do
Here are some tips for making your own background tiles with Paint Shop Pro:
- If you have a scanner or digital camera, try using some textures from around the house or office, such as the top of a wooden desk, leaves of houseplants, or clothing.
- Using the Image, Blur, Blur More filter on an image (as I did with the Jupiter picture in Figures 11.7 and 11.8) before you turn it into a seamless tile will help it look better as a background. Using Colors, Adjust, Brightness and Contrast is usually also necessary to keep the background subtle in color variation.
- When you select an area to be turned into a tile, try to choose part of the image that is fairly uniform in brightness from side to side. Otherwise, the tile may not look seamless even after you use Convert to Seamless Pattern.
- You must also use an image big enough so that you can leave at least the width and height of the tile on either side of your selection. If you don't, when you select Convert to Seamless Pattern you'll get a message saying Your selection is too close to the edge to complete this operation.
- You can also make some almost-automatic textures with the paper texture feature in the paintbrush style palette in Paint Shop Pro. You can make great paper textures, too, by selecting Image, Noise, Add followed by Image, Blur, Blur and Colors, Colorize.
Summary | Next Section

Account Sign In
View your cart