diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
commit | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch) | |
tree | 0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/api/htmltableelement/align/index.html | |
parent | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff) | |
download | translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2 translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip |
initial commit
Diffstat (limited to 'files/es/web/api/htmltableelement/align/index.html')
-rw-r--r-- | files/es/web/api/htmltableelement/align/index.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/files/es/web/api/htmltableelement/align/index.html b/files/es/web/api/htmltableelement/align/index.html new file mode 100644 index 0000000000..de10e6cbc6 --- /dev/null +++ b/files/es/web/api/htmltableelement/align/index.html @@ -0,0 +1,40 @@ +--- +title: HTMLTableElement.align +slug: Web/API/HTMLTableElement/align +translation_of: Web/API/HTMLTableElement/align +--- +<div> +<div>{{APIRef("HTML DOM")}}{{deprecated_header()}}</div> +</div> + +<p>La propiedad <strong><code>HTMLTableElement.align</code></strong> representa la alineación de la tabla.</p> + +<h2 id="Syntax" name="Syntax">Sintaxis</h2> + +<pre class="syntaxbox"><em>HTMLTableElement</em>.align =<em>alignment</em>; +var<em>alignment</em> =<em>HTMLTableElement</em>.align;</pre> + +<h3 id="Parameters" name="Parameters">Parámetros</h3> + +<dl> + <dt><code>alignment</code> {{deprecatedGeneric('inline','HTML4')}}</dt> + <dd><code>alignment</code> es una cadena con uno de los siguientes valores: + <ul> + <li>left</li> + <li>center</li> + <li>right</li> + </ul> + </dd> +</dl> + +<h2 id="Example" name="Example">Ejemplo</h2> + +<pre class="brush:js">// Establecer la alineación de una tabla +var t = document.getElementById('TableA'); +t.align = 'center';</pre> + +<h2 id="Specification" name="Specification">Especificación</h2> + +<ul> + <li>Especificación W3C DOM 2 HTML <a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-23180977"><em>HTMLTableElement</em> .align</a>.</li> +</ul> |