{"id":1246,"date":"2024-08-01T17:16:21","date_gmt":"2024-08-01T15:16:21","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=1246"},"modified":"2024-08-01T17:16:22","modified_gmt":"2024-08-01T15:16:22","slug":"19-texto-en-css-2","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/lenguajes\/css3\/css3-basico\/19-texto-en-css-2\/","title":{"rendered":"19. Texto en CSS (2)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">text-decoration<\/h2>\n\n\n\n<p>En este cap\u00edtulo aprender\u00e1 acerca de las siguientes propiedades:<\/p>\n\n\n\n<!--more-->\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><em>text-decoration-line<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>text-decoration-color<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>text-decoration-style<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>text-decoration-thickness<\/em><\/strong><\/li>\n\n\n\n<li><strong><em>text-decoration<\/em><\/strong><\/li>\n<\/ul>\n\n\n\n<p>La propiedad <strong><em>text-decoration-line<\/em><\/strong> se usa para agregar una l\u00ednea de decoraci\u00f3n al texto.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Sugerencia<\/strong>: puedes combinar m\u00e1s de un valor, como sobrerayado y subrayado, para mostrar l\u00edneas tanto encima como debajo de un texto.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">h1&nbsp;{\n&nbsp; text-decoration-line:&nbsp;overline;\n}\n\nh2&nbsp;{\n&nbsp; text-decoration-line:&nbsp;line-through;\n}\n\nh3&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n}\n\np&nbsp;{\n&nbsp; text-decoration-line:&nbsp;overline underline;\n}<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Nota<\/strong>: No se recomienda subrayar el texto que no sea un enlace, ya que esto suele confundir al lector.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Establecer un color para la linea de decoraci\u00f3n<\/h2>\n\n\n\n<p>La propiedad <strong><em>text-decoration-color<\/em><\/strong> se utiliza para establecer el color de la l\u00ednea de decoraci\u00f3n.<\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">h1&nbsp;{\n&nbsp; text-decoration-line:&nbsp;overline;\n&nbsp; text-decoration-color:&nbsp;red;\n}\n\nh2&nbsp;{\n&nbsp; text-decoration-line:&nbsp;line-through;\n&nbsp; text-decoration-color:&nbsp;blue;\n}\n\nh3&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-color:&nbsp;green;\n}\n\np&nbsp;{\n&nbsp; text-decoration-line:&nbsp;overline underline;\n&nbsp; text-decoration-color:&nbsp;purple;\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Establecer un estilo para la linea de decoraci\u00f3n<\/h2>\n\n\n\n<p>La propiedad <strong><em>text-decoration-style<\/em><\/strong> se utiliza para establecer el estilo de la l\u00ednea de decoraci\u00f3n.<\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">h1&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-style:&nbsp;solid;\n}\n\nh2&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-style:&nbsp;double;\n}\n\nh3&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-style:&nbsp;dotted;\n}\n\np.ex1&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-style:&nbsp;dashed;\n}\n\np.ex2&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-style:&nbsp;wavy;\n}\n\np.ex3&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-color:&nbsp;red;\n&nbsp; text-decoration-style:&nbsp;wavy;\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Especificar el grosor de la l\u00ednea de decoraci\u00f3n<\/h2>\n\n\n\n<p>La propiedad <strong><em>text-decoration-thickness<\/em><\/strong> se utiliza para establecer el grosor de la l\u00ednea de decoraci\u00f3n.<\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">h1&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-thickness:&nbsp;auto;\n}\n\nh2&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-thickness:&nbsp;5px;\n}\n\nh3&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-thickness:&nbsp;25%;\n}\n\np&nbsp;{\n&nbsp; text-decoration-line:&nbsp;underline;\n&nbsp; text-decoration-color:&nbsp;red;\n&nbsp; text-decoration-style:&nbsp;double;\n&nbsp; text-decoration-thickness:&nbsp;5px;\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Forma corta de escribir<\/h2>\n\n\n\n<p>La propiedad text-decoration es una propiedad abreviada para:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>text-decoration-line (requerido)<\/li>\n\n\n\n<li>text-decoration-color (opcional)<\/li>\n\n\n\n<li>text-decoration-style (opcional)<\/li>\n\n\n\n<li>text-decoration-thickness (opcional)<\/li>\n<\/ul>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">h1&nbsp;{\n&nbsp; text-decoration:&nbsp;underline;\n}\n\nh2&nbsp;{\n&nbsp; text-decoration:&nbsp;underline red;\n}\n\nh3&nbsp;{\n&nbsp; text-decoration:&nbsp;underline red double;\n}\n\np&nbsp;{\n&nbsp; text-decoration:&nbsp;underline red double 5px;\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Un peque\u00f1o consejo<\/h2>\n\n\n\n<p>Todos los enlaces en HTML est\u00e1n subrayados por defecto. A veces ves que los enlaces tienen un estilo sin subrayar. <strong><em>text-decoration: none;<\/em><\/strong> se utiliza para eliminar el subrayado de los enlaces, como este.<\/p>\n\n\n\n<p><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a&nbsp;{\n&nbsp; text-decoration:&nbsp;none;\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>text-decoration En este cap\u00edtulo aprender\u00e1 acerca de las siguientes propiedades:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":563,"menu_order":18,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1246","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Sutil Web","author_link":"https:\/\/sutilweb.eu\/index.php\/author\/sutilweb\/"},"uagb_comment_info":0,"uagb_excerpt":"text-decoration En este cap\u00edtulo aprender\u00e1 acerca de las siguientes propiedades:","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/comments?post=1246"}],"version-history":[{"count":2,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1246\/revisions"}],"predecessor-version":[{"id":1248,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/1246\/revisions\/1248"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/563"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=1246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}