frame attribute | frame property

Sets or retrieves the way the border frame around the table is displayed.

Syntax

HTML<element frame="p" ... >
JavaScript

p = object.frame

 

Property values

Type: String

void

Default. All outside table borders are removed.

above

Border on the top side of the border frame is displayed.

below

Border on the bottom side of the table frame is displayed.

border

Borders on all sides of the table frame are displayed.

box

Borders on all sides of the table frame are displayed.

hsides

Borders on the top and bottom sides of the table frame are displayed.

lhs

Border on the left side of the table frame is displayed.

rhs

Border on the right side of the table frame is displayed.

vsides

Borders on the left and right sides of the table frame are displayed.

Examples

This example uses the frame attribute to render different border frames.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/frame.htm


<table frame="above">
<tr><td>A table with</td><td>the value of frame set to "above"</td></tr>
<tr><td>cell</td><td>cell</td></tr>
</table>

See also

table
rules

 

 

Show:
© 2014 Microsoft