27 of 313 menu

Propiedad text-stroke-width

La propiedad text-stroke-width establece el grosor del contorno de los caracteres de texto o su trazo. La propiedad acepta valores especificados en unidades de tamaño como px, em, rem, etc. También se pueden establecer los siguientes valores: thin (línea fina), medium (línea media) y thick (línea gruesa).

Sintaxis

selector { text-stroke-width: número o thin o medium o thick; }

Ejemplo

Vamos a establecer un trazo fino para los caracteres de nuestro texto:

<p> Text </p> body { width: 100px; height: 50px; } p { -webkit-text-stroke-color: orange; -webkit-text-stroke-width: thin; text-stroke-width: thin; color: white; font-size: 10em; margin-top: 0; font-weight: bold; font-family: Arial; }

:

Ejemplo

Y ahora cambiemos el trazo fino a medio:

<p> Text </p> body { width: 100px; height: 50px; } p { -webkit-text-stroke-color: orange; -webkit-text-stroke-width: medium; text-stroke-width: medium; color: white; font-size: 10em; margin-top: 0; font-weight: bold; font-family: Arial; }

:

Ejemplo

Vamos a establecer un trazo grueso para los caracteres de nuestro texto:

<p> Text </p> body { width: 100px; height: 50px; } p { -webkit-text-stroke-color: orange; -webkit-text-stroke-width: thick; text-stroke-width: thick; color: white; font-size: 10em; margin-top: 0; font-weight: bold; font-family: Arial; }

:

Ejemplo

También vamos a establecer un trazo de 2px para los caracteres de nuestro texto:

<p> Text </p> body { width: 100px; height: 50px; } p { -webkit-text-stroke-color: orange; -webkit-text-stroke-width: 2px; color: white; font-size: 10em; margin-top: 0; font-weight: bold; font-family: Arial; }

:

Véase también

Español
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEnglishEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
Usamos cookies para el funcionamiento del sitio, análisis y personalización. El procesamiento de datos se realiza de acuerdo con la Política de privacidad.
aceptar todas configurar rechazar