Saltar al contenido

espacio entre líneas en el ejemplo de código html

Después de indagar en diversos repositorios y sitios webs al terminar hallamos la solución que te enseñamos ahora.

Ejemplo 1: interlineado css

line-height:20px;/* 4px +12px + 4px *//* OR */line-height:1.7em;/* 1em = 12px in this case. 20/12 == 1.666666  */

Ejemplo 2: CSS de altura de línea

/* Keyword value */line-height: normal;/* Unitless values: use this number multiplied
by the element's font size */line-height:3.5;/*  values */line-height:3em;/*  values */line-height:34%;/* Global values */line-height: inherit;line-height: initial;line-height: unset;

Ejemplo 3: cómo agregar espacio entre líneas en html

mainline-height:20px:

Ejemplo 4: CSS de altura de línea

.greenline-height:1.1;border: solid limegreen;.redline-height:1.1em;border: solid red;h1font-size:30px;.boxwidth:18em;display: inline-block;vertical-align: top;font-size:15px;

Ejemplo 5: CSS de altura de línea

"box green">

Avoid unexpected results by using unitless line-height.

length and percentage line-heights have poor inheritance behavior ...
"box red">

Avoid unexpected results by using unitless line-height.

length and percentage line-heights have poor inheritance behavior ...

Reseñas y puntuaciones

No se te olvide compartir este escrito si te ayudó.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)



Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *