Chapter 8: More Cascading Style Sheets
322
The rule for the <table> element uses a width property to fix the width of the table to 350
pixels; otherwise, it would take up as much of the screen as needed to show as much text as
possible on one line.
The...
More
Chapter 8: More Cascading Style Sheets
322
The rule for the <table> element uses a width property to fix the width of the table to 350
pixels; otherwise, it would take up as much of the screen as needed to show as much text as
possible on one line.
The rule for the <table> element also has a border property set, which creates a single-pixel
border all around the table.
Note, however, that none of the other cells in the table inherits this
property.
The rule that applies to the <caption> element has its font-weight, border, and text-align
properties set.
By default the text is normal (not bold), aligned in the center, and without
a border.
The rule that applies to the <th> element sets the height of the headings to 50 pixels, and the
text is aligned left (rather than centered, which is the default).
There is a rule that applies to both the <th> and <td> elements, and this indicates that both
should have a padding property set to 5px so that the content of the cells does not touch
Less