Page 76 - modular_v2.0_HTML&_CSS_Fb
P. 76
<style>
table{width:50%}
</style>
Using Padding Property
The padding property is used to specify the space around the content of a cell and the border of
the cell in a table. For example:
<STYLE>
TABLE, TH, TD
{
BORDER:2PX;
BORDER-STYLE:SOLID;
BORDER-COLOR:GREEN;
BORDER-SPACING:15PX;
PADDING:15PX
}
Using Padding Property
</STYLE>
Using Background-color Property
The background-color property is used to specify the colour for the background in a table on the
web page. You can apply colour in a cell, row or entire table. For example:
<STYLE>
TABLE, TH, TD
{
BORDER:2PX;
BORDER-STYLE:SOLID;
BORDER-COLOR:GREEN;
BACKGROUND-COLOR:ORANGE;
}
Using Background-color Property
</STYLE>
Using Color Property
The color property is used to specify the text colour. For example:
<STYLE>
TABLE, TH, TD
{
BORDER:2PX;
74
Touchpad MODULAR (Ver. 2.0)

