How to add advanced responsive HTML Table Colgroup to blogger post Colors and Backgrounds example with output
Table HTML can have outer border colors as well as cell border colors. They also can have background colors, patterns, and graphic images as backdrops for the full table or for selected rows and cells.
<colgroup>
and <col>
elements. The <colgroup>
element should be used as a container for the column specifications.
Each group is specified with an <col>
element.
The span
the attribute specifies how many columns that get the style.
The style
attribute specifies the style to give the columns.
Colgroup
Add the a colgroup with a col element that spans over two columns to define a style for the two columns:
MON | TUE | WED | THU | FRI | SAT | SUN |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
Comments :
Post a Comment