HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

Chapter 42


ch39 Tiled Backgrounds


Contents


42.1 Tiling.......................... 316
42.2 Edge Effect...................... 316
42.3 Textures........................ 316
42.4 Example 1....................... 317
42.5 Example 2....................... 320

Face it. Backgrounds can have a dramatic effect on the feeling you get when
you visit a webpage.


There are a couple of options. In this chapter we will talk about tiled
backgrounds, but you could also use (a) a large photograph, (b) something
you download from the web, or (c) a simple color.


(a) large photographs suffer, sometimes greatly, from slow download.


(b) something from the web suffers from copyright problems, and from lack
of personal creativity.


(c) simple color suffers from being boring.


We want to achieve three things: (a) not boring, (b) no copyright problems,
(c) fast download.


We can achieve our goals by making our own tiled background.


315

Free download pdf