Web design creating cool web sites with html, xhtml, and css

Page 196

Chapter 8: Tables and Frames

169

Figure 8-9: Table-edge colors specified for a different appearance: This capability is only available in Internet Explorer.

on the web

This example looks good here, but to really see this rainbow of colors at its best, you’ll want to view the file on your own computer! Just go to http://www .intuitive.com/coolsites/, and then go to the Examples area to see it in full color.

Modifying edges and grid lines Two table attributes are new in the HTML 4 specification. Both offer even finer granularity of control over the borders around the table and between the individual data cells. The two attributes are frame and rules, and their values are defined as shown in Tables 8-2 and 8-3.

Table 8-2: Values for the <table frame= Attribute> Value

Result

void

Removes all outside table borders

above

Displays a border on the top side of the table frame

below

Displays a border on the bottom side of the table frame

hsides

Displays a border on the top and bottom sides of the table frame

lhs

Displays a border on the left-hand side of the table frame

rhs

Displays a border on the right-hand side of the table frame

vsides

Displays a border on the left and right sides of the table frame

box

Displays a border on all sides of the table frame

border

Displays a border on all sides of the table frame


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.