HTML and CSS Reference
In-Depth Information
Figure 5-38
Adding font and color styles to the schedule table
font styles for th e
table text
styles for the t able
header row group
styles for the f irst
column of the table
4. Save your changes to the style sheet and then reload schedule.htm in your Web
browser. The revised table design is shown in Figure 5-39.
Figure 5-39
Reformatted schedule table
table caption
inherits the text
styles from the table
As expected, the cell in the fi rst column of the header row does indeed have a purple,
rather than a light yellow, background. Also note that all of the cells in the table and the
table caption have adopted the smaller sans-serif font. This is because the font style you
entered for the schedule table is inherited by all table objects unless a different font style
is specifi ed.
Search WWH ::

Custom Search