O'Reilly logo

Practical Web Technologies by V. Lau, P. K. Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.3. Background and border

The background family of CSS style elements is used to set the background characteristics on your Web page. For example, you could apply some CSS background elements to highlight an area on a page, or just simply to enhance the contrasts of the display and the background. Another useful CSS element is border. The border properties set the display of borders around its associated CSS element. All these, together with the dimensioning and postioning CSS elements, give a variety of controls down to pixel level to help you design your pages. The dimensioning and positioning CSS elements will be discussed in more detail in section 2.4.

Some frequently used background CSS elements are shown in Table 2.5.

Table 2.5. Background ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required