Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 106856 of HTMLTableColElement

  • Revision slug: DOM/HTMLTableColElement
  • Revision title: HTMLTableColElement
  • Revision id: 106856
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment heading caps standardization; 5 words added, 5 words removed

Revision Content

{{ DomRef() }}

HTML table column element interface

DOM table column objects (which may correspond to {{ HTMLElement("col") }} or {{ HTMLElement("colgroup") }} HTML elements) expose the HTMLTableColElement (or HTML 4 HTMLTableColElement) interface, which provides special properties (beyond the regular element object interface they also have available to them by inheritance) for manipulating table column elements.

Properties

Name Type Description
align {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Indicates the horizontal alignment of the cell data in the column.
ch {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Alignment character for cell data.
chOff {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Offset for the alignment character.
span unsigned long Reflects the {{ htmlattrxref("span", "col") }} HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer.
vAlign {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Indicates the vertical alignment of the cell data in the column.
width {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }} DOMString Default column width.

See also

  • {{ HTMLElement("col") }} HTML element
  • {{ HTMLElement("colgroup") }} HTML element

Revision Source

<p>{{ DomRef() }}</p>
<h2 id="HTML_table_column_element_interface">HTML table column element interface</h2>
<p>DOM table column objects (which may correspond to {{ HTMLElement("col") }} or {{ HTMLElement("colgroup") }} HTML elements) expose the <a class=" external" href="https://www.w3.org/TR/html5/tabular-data.html#htmltablecolelement" rel="external nofollow" target="_blank" title="https://www.w3.org/TR/html5/tabular-data.html#htmltablecolelement">HTMLTableColElement</a> (or <span style="border: 1px solid rgb(129, 129, 250); background-color: rgb(174, 218, 229); font-size: x-small; white-space: nowrap; padding: 2px;"><a href="../../../../en/HTML" rel="custom nofollow">HTML 4</a></span> <a class=" external" href="https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-84150186" rel="external nofollow" target="_blank" title="https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-84150186"><code>HTMLTableColElement</code></a>) interface, which provides special properties (beyond the regular <a href="../../../../en/DOM/element" rel="internal">element</a> object interface they also have available to them by inheritance) for manipulating table column elements.</p>
<h2 id="Properties">Properties</h2>
<table class="standard-table"> <thead> <tr> <th scope="col">Name</th> <th scope="col">Type</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr> <td><code>align</code> {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Indicates the horizontal alignment of the cell data in the column.</td> </tr> <tr> <td><code>ch</code> {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Alignment character for cell data.</td> </tr> <tr> <td><code>chOff</code> {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Offset for the alignment character.</td> </tr> <tr> <td><code>span</code></td> <td><code>unsigned long</code></td> <td>Reflects the {{ htmlattrxref("span", "col") }} HTML attribute, indicating the number of columns to apply this object's attributes to. Must be a positive integer.</td> </tr> <tr> <td><code>vAlign</code> {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Indicates the vertical alignment of the cell data in the column.</td> </tr> <tr> <td><code>width</code> {{ obsolete_inline() }} in {{ HTMLVersionInline("5") }}</td> <td><a href="/En/DOM/DOMString" title="En/DOM/DOMString"><code>DOMString</code></a></td> <td>Default column width.</td> </tr> </tbody>
</table>
<h2 id="See_also">See also</h2>
<ul> <li>{{ HTMLElement("col") }} HTML element</li> <li>{{ HTMLElement("colgroup") }} HTML element</li>
</ul>
Revert to this revision