aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/css/left
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
commit1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch)
tree0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/css/left
parent4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff)
downloadtranslated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip
initial commit
Diffstat (limited to 'files/es/web/css/left')
-rw-r--r--files/es/web/css/left/index.html144
1 files changed, 144 insertions, 0 deletions
diff --git a/files/es/web/css/left/index.html b/files/es/web/css/left/index.html
new file mode 100644
index 0000000000..8a7912b86d
--- /dev/null
+++ b/files/es/web/css/left/index.html
@@ -0,0 +1,144 @@
+---
+title: left
+slug: Web/CSS/left
+translation_of: Web/CSS/left
+---
+<p>{{CSSRef}}</p>
+
+
+<p>La propiedad <code>left</code> especifica parte de la posición de un elemento (posicionado - es decir, con una posición determinada por código).</p>
+
+<p>Para los elementos con una posición absoluta (aquellos que tienen la propiedad {{ Cssxref("position") }}<code>: absolute</code> ó <code>position: fixed</code>), la propiedad left determina la distancia entre el margen izquierdo del elemento y el borde izquierdo de su bloque contenedor.</p>
+
+<div>{{EmbedInteractiveExample("pages/css/left.html")}}</div>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Sintaxis">Sintaxis</h2>
+
+<pre class="eval notranslate">left: &lt;length&gt; | &lt;percentage&gt; | auto | inherit ;
+</pre>
+
+<h3 id="Valores">Valores</h3>
+
+<dl>
+ <dt>{{cssxref("&lt;length&gt;")}}</dt>
+ <dd>Una longitud, un valor negativo, cero, un valor positivo.</dd>
+ <dt>{{cssxref("&lt;percentage&gt;")}}</dt>
+ <dd>Un porcentaje del ancho del bloque contenedor.</dd>
+</dl>
+
+<h2 id="Ejemplos">Ejemplos</h2>
+
+<h3 id="CSS">CSS</h3>
+
+<pre class="brush: css notranslate">#wrap {
+ width: 700px;
+ margin: 0 auto;
+ background: #5C5C5C;
+}
+
+pre {
+ white-space: pre;
+ white-space: pre-wrap;
+ white-space: pre-line;
+ word-wrap: break-word;
+}
+
+#example_1 {
+ width: 200px;
+ height: 200px;
+ position: absolute;
+ left: 20px;
+ top: 20px;
+ background-color: #D8F5FF;
+}
+
+#example_2 {
+ width: 200px;
+ height: 200px;
+ position: relative;
+ top: 0;
+ right: 0;
+ background-color: #C1FFDB;
+
+}
+#example_3 {
+ width: 600px;
+ height: 400px;
+ position: relative;
+ top: 20px;
+ left: 20px;
+ background-color: #FFD7C2;
+}
+
+#example_4 {
+ width:200px;
+ height:200px;
+ position:absolute;
+ bottom:10px;
+ right:20px;
+ background-color:#FFC7E4;
+}</pre>
+
+<h3 id="HTML">HTML</h3>
+
+<pre class="brush: html notranslate">&lt;div id="wrap"&gt;
+ &lt;div id="example_1"&gt;
+ &lt;pre&gt;
+ position: absolute;
+ left: 20px;
+ top: 20px;
+ &lt;/pre&gt;
+ &lt;p&gt;The only containing element for this div is the main window, so it positions itself in relation to it.&lt;/p&gt;
+ &lt;/div&gt;
+
+ &lt;div id="example_2"&gt;
+ &lt;pre&gt;
+ position: relative;
+ top: 0;
+ right: 0;
+ &lt;/pre&gt;
+ &lt;p&gt;Relative position in relation to its siblings.&lt;/p&gt;
+ &lt;/div&gt;
+
+ &lt;div id="example_3"&gt;
+ &lt;pre&gt;
+ float: right;
+ position: relative;
+ top: 20px;
+ left: 20px;
+ &lt;/pre&gt;
+ &lt;p&gt;Relative to its sibling div above, but removed from flow of content.&lt;/p&gt;
+
+ &lt;div id="example_4"&gt;
+ &lt;pre&gt;
+ position: absolute;
+ bottom: 10px;
+ right: 20px;
+ &lt;/pre&gt;
+ &lt;p&gt;Absolute position inside of a parent with relative position&lt;/p&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+&lt;/div&gt;</pre>
+
+<p>{{EmbedLiveSample('Ejemplos',1200,650)}}</p>
+
+<h2 id="Especificaciones">Especificaciones</h2>
+
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-left">CSS 2.1</a></li>
+ <li><a class="external" href="http://www.w3.org/Style/CSS/current-work#positioning">CSS 3</a></li>
+</ul>
+
+<h2 id="Compatibilidad_entre_navegadores">Compatibilidad entre navegadores</h2>
+
+
+<p>{{Compat("css.properties.left")}}</p>
+
+
+<h2 id="Ver_también">Ver también</h2>
+
+<ul>
+ <li>{{ Cssxref("position") }}, {{ Cssxref("top") }}, {{ Cssxref("right") }}, {{ Cssxref("bottom") }}</li>
+</ul>