Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves a string that indicates whether the table layout is fixed.
Syntax
{ table-layout : sLayout } |
object.style.tableLayout [ = sLayout ] |
Possible Values
sLayout | String that specifies or receives one of the following values:
|
The property is read/write for all objects except the following, for which it is read-only: currentStyle . The property has a default value of auto . The Cascading Style Sheets (CSS) attribute is not inherited.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
You can optimize table rendering performance by specifying the tableLayout property. This property causes Microsoft® Internet Explorer to render the table one row at a time, providing users with information at a faster pace. The tableLayout property determines column widths for a table in the following order:
If the content of a cell exceeds the fixed width of the column, the content is wrapped or, if wrapping is not possible, it is clipped. If the tableLayout property is set to fixed , the overflow property can be used to handle content that exceeds the width of a td element. If the row height is specified, wrapped text is clipped when it exceeds the set height.
Setting the property to fixed significantly improves table rendering speed, particularly for longer tables.
Setting row height further improves rendering speed, again enabling the browser's parser to begin rendering the row without examining the content of each cell in the row to determine row height.
Example
This example uses the Cascading Style Sheets (CSS) attribute to set the table layout to fixed .
<TABLE STYLE=" table-layout :fixed" WIDTH=600>Standards Information
This property is defined in CSS, Level 2 (CSS2) .
Applies To
|
currentStyle , runtimeStyle , style , TABLE |
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |