border attribute (img, object, table, ...)
Sets the thickness of the border.
This attribute is deprecated.
JavaScript page for this attribute: border. You can find other example(s) there. |
Possible values:
String that sets the thickness of the border, with an integer optionally followed by a 'px' (pixel) unit designator.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the border attribute:
|
||||
<table id="myTable" border="6px"> <tr> <td>Apple</td> <td>Pear</td> <td>Peach</td> </tr> </table> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
Recommendation:
|
||||
<head> <style> .myTable { border:6px solid; /* top right bottom left */ border-color:#ece9d8 #aca988 #aca988 #ece9d8; } .myTable td { border:1px solid; /* top right bottom left */ border-color:#aca988 #ece9d8 #ece9d8 #aca988; } </style> </head> <body> <table class="myTable"> <tr> <td>Apple</td> <td>Pear</td> <td>Peach</td> </tr> </table> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
border (MSDN)
border (TABLE) (Mozilla Developer Center)
border (Safari Reference Library)
border (TABLE) (W3C)
border (IMG) (W3C)
border (TABLE) (Mozilla Developer Center)
border (Safari Reference Library)
border (TABLE) (W3C)
border (IMG) (W3C)
User Contributed Comments