Table border samples |
|||||||||||||||||||||
Table border |
|||||||||||||||||||||
These are html tags you type. <table style="border: red 8px solid;"> <tr> <th> Heading 1 </th> <th> Heading 2 </th> </tr> <tr> <td> Datum 1 </td> <td> Datum 2 </td> </tr> </table> |
This is the resulting web page content:
|
||||||||||||||||||||
Table partial border specification |
|||||||||||||||||||||
Let's try leaving out part of the border Other border-style values.
So, always give a |
This is the resulting web page content:
|
||||||||||||||||||||
Other border-style values |
|||||||||||||||||||||
Let's look at other border-style values.
|
This is the resulting web page content:
|
||||||||||||||||||||
|
|
||||||||||||||||||||
You can specify four different values for the top, right, bottom, and left.
It is better to put the styles in a style container in the head, or, better yet, in a style sheet in a separate file. |
|||||||||||||||||||||
|
|||||||||||||||||||||
You can inherit the border from the parent object. <div style="border-color: red green orange blue; border-width: 8px; border-style: solid; padding: 10px;"> <table style="border: inherit;"> <tr> <th> Heading 1 </th> <th> Heading 2 </th> </tr> <tr> <td> Datum 1 </td> <td> Datum 2 </td> </tr> </table> </div> |
|||||||||||||||||||||
|
|||||||||||||||||||||