Meta tags:
description= Usa la propiedad CSS line-height para especificar la altura de las líneas de texto. Definición, valores y ejemplos de la propiedad.;
Headings (most frequently used words):
con, valor, ejemplo, el, unidades, valores, propiedad, css, line, height, sintaxis, elección, del, sin, frente, accesibilidad, práctica, normal, resultado, length, percentage, múltiples,
Text of the page (most frequently used words):
line (73), #height (69), border (34), css (32), div (31), style (26), font (25), text (23), html (22), valor (19), color (18), grid (18), #propiedad (17), aprender (15), línea (15), altura (14), the (14), width (14), los (13), texto (13), una (13), column (13), con (12), que (12), title (12), background (12), this (11), pruébalo (11), normal (11), class (11), del (10), body (10), head (10), ejemplo (10), break (10), size (9), paragraph (9), with (9), top (9), right (9), left (9), bottom (9), image (9), animation (9), unidades (8), las (8), por (8), child (8), position (8), stroke (8), para (7), valores (7), elemento (7), here (7), set (7), overflow (7), decoration (7), offset (7), flex (7), sin (6), sintaxis (6), page (6), líneas (6), define (6), elementos (6), copiar (6), 200 (6), align (6), padding (6), margin (6), type (6), variant (6), w3docs (5), list (5), fuente (5), span (5), doctype (5), specified (5), property (5), transition (5), last (5), outline (5), radius (5), formatter (5), generator (4), práctica (4), tamaño (4), establece (4), hereda (4), porcentaje (4), length (4), más (4), caja (4), mismo (4), standard (4), example (4), document (4), mode (4), transform (4), fill (4), template (4), row (4), gap (4), rule (4), nth (4), first (4), json (3), code (3), encoder (3), editor (3), cuestionarios (3), ejercicios (3), php (3), javascript (3), accesibilidad (3), elección (3), entre (3), qué (3), hace (3), predeterminado (3), initial (3), cálculo (3), número (3), number (3), fija (3), esta (3), espaciado (3), cuando (3), interlineado (3), como (3), inherited (3), factor (3), 110 (3), 120 (3), object (3), word (3), wrap (3), spacing (3), range (3), origin (3), justify (3), items (3), before (3), after (3), max (3), letter (3), content (3), columns (3), auto (3), direction (3), clip (3), box (3), only (3), ver (3), string (3), tools (3), todos (2), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), beautifier (2), diff (2), password (2), herramientas (2), python (2), java (2), git (2), libros (2), ejemplos (2), fragmentos (2), frente (2), clamp (2), espacio (2), padre (2), inherit (2), calc (2), actual (2), multiplica (2), establecer (2), cuerpo (2), aplica (2), propio (2), usa (2), longitud (2), sola (2), general (2), big (2), parent (2), bad (2), scales (2), good (2), 150 (2), píxeles (2), diferente (2), cada (2), most (2), browsers (2), about (2), bigger (2), centimeter (2), pixels (2), percentage (2), default (2), animable (2), información (2), son (2), reemplazados (2), tipo (2), vertical (2), propiedades (2), visibility (2), unicode (2), timing (2), function (2), duration (2), delay (2), shadow (2), rendering (2), skip (2), perspective (2), inside (2), anchor (2), path (2), blend (2), min (2), rows (2), start (2), end (2), flow (2), feature (2), display (2), empty (2), counter (2), count (2), repeat (2), read (2), hash (2), 2026, derechos, reservados, hecho, desarrolladores, idioma, política, privacidad, contacto, acerca, empresa, try, tutoriales, gratuitos, web, desde, 2014, next, previous, yes, was, helpful, comprobar, ajusta, distancia, altera, ancho, cantidad, encima, debajo, nota, recomienda, ampliamente, usar, unidad, heights, escalables, use, mediante, etc, descripción, criterio, éxito, requiere, contenido, siga, siendo, legible, usuarios, anulan, menos, seguro, accesible, evita, diseños, rompan, usuario, veces, wcag, recurre, solo, deliberadamente, quieras, constante, centrar, verticalmente, haciendo, coincidir, regla, may, overlap, fine, problematic, computed, pixel, recommended, each, element, its, own, compara, ambos, cuyo, hijo, tiene, grande, donde, declara, resultante, descendientes, conservan, esa, puede, provocar, solape, calcula, vez, 5em, descendiente, siempre, escala, correctamente, decisión, importante, depende, cómo, 1cm, 5cm, 50px, múltiples, 10px, resultado, lineheight, 40px, dom, css1, versión, heredado, inicial, mayor, diferencia, será, predeterminada, aproximadamente, mayoría, navegadores, negativos, válidos, otros, típicamente, afecta, input, botones, utilizada, bloque, mínima, cajas, dentro, comporta, manera, según, página, cubre, aceptado, suelen, ser, correcta, problemas, herencia, hay, vigilar, especifica, controlando, importantes, legibilidad, demasiado, juntas, difíciles, leer, mientras, muy, separadas, hacen, párrafo, parezca, desconectado, especificar, definición, zoom, index, writing, will, change, widows, white, space, user, select, bidi, underline, orientation, indent, ink, combine, upright, table, layout, tab, linecap, dashoffset, dasharray, speak, shape, outside, scrollbar, scroll, behavior, resize, quotes, pointer, events, place, orphans, order, opacity, rotate, distance, fit, mix, media, lines, keyframes, isolation, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, stretch, language, override, adjust, kerning, values, settings, family, face, float, shrink, grow, basis, filter, cells, cursor, reset, increment, clear, charset, caret, caption, side, sizing, source, slice, outset, collapse, block, bleed, attachment, backface, appearance, play, state, name, iteration, self, all, properties, visited, valid, target, selection, scope, root, required, write, placeholder, out, optional, not, link, lang, invalid, indeterminate, hover, fullscreen, focus, enabled, disabled, dir, checked, active, selectores, selectors, css3, guía, flexbox, guides, gradientes, nombres, colores, tablas, links, uso, introducción, basic, iniciar, sesión, buscar, formatters, url, reverse, sha256, md5, calculator, colors, hsl, hex, mixer, converter, picker, cursos,
Text of the page (random words):
propiedad css line height w3docs w3docs libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos cuestionarios ejercicios fragmentos herramientas general tools html editor password generator html encoder code diff json beautifier ver los 13 color tools color picker color converter color mixer color hex colors hsl ver los 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder ver los 19 code formatters javascript formatter css formatter html formatter json formatter php formatter buscar en w3docs k es english en deutsch de русский ru français fr español es português pt italiano it iniciar sesión aprender css css basic introducción a css uso de css sintaxis css css id y class texto en css css font css links tablas css css border css padding css margin nombres de colores css gradientes css css guides guía de flexbox propiedades de css3 css selectors selectores css active after before checked default dir disabled empty enabled first child first letter first line first of type focus fullscreen hover in range indeterminate invalid lang last child last of type link not nth child nth last child nth last of type nth of type only child only of type optional out of range placeholder read only read write required root scope selection target valid visited css properties align content align items all animation align self animation delay animation direction animation duration animation fill mode animation iteration count animation name animation play state animation timing function appearance backface visibility background background attachment background blend mode background clip background color background image background origin background position background position x background position y background repeat background size bleed block overflow border border bottom border bottom color border bottom left radius border bottom right radius border bottom style border bottom width border collapse border color border image border image outset border image repeat border image slice border image source border image width border left border left color border left style border left width border radius border right border right color border right style border right width border spacing border style border top border top color border top left radius border top right radius border top style border top width border width bottom box decoration break box shadow box sizing break after break before break inside caption side caret color charset clear clip clip path color columns column count column fill column gap column rule column rule color column rule style column rule width column span column width content counter increment counter reset cursor direction display empty cells fill filter flex flex basis flex direction flex flow flex grow flex shrink flex wrap float font font face font display font family font feature settings font feature values font kerning font size font size adjust font language override font stretch font style font variant font variant alternates font variant caps font variant east asian font variant ligatures font variant numeric font weight grid grid area grid auto columns grid auto flow grid auto rows grid column grid column end grid column gap grid column start grid gap grid row grid row end grid row gap grid row start grid template grid template areas grid template columns grid template rows hanging punctuation height hyphens image rendering import initial letter isolation justify content justify items keyframes left letter spacing line break line clamp line height list style list style image list style position list style type margin margin bottom margin left margin right margin top max height max lines max width media min height min width mix blend mode object fit object position offset offset anchor offset distance offset path offset position offset rotate opacity order orphans outline outline color outline offset outline style outline width overflow overflow anchor overflow wrap overflow x overflow y padding padding bottom padding left padding right padding top page break page break after page break before page break inside perspective perspective origin place items pointer events position quotes resize right scroll behavior scrollbar shape outside speak stroke stroke dasharray stroke dashoffset stroke linecap stroke width tab size table layout text align text align last text combine upright text decoration text decoration color text decoration line text decoration skip text decoration skip ink text decoration style text fill color text indent text justify text orientation text overflow text rendering text shadow text stroke text stroke color text stroke width text transform text underline position top transform transform origin transform style transition transition delay transition duration transition property transition timing function unicode bidi unicode range user select vertical align visibility white space widows width will change word break word spacing word wrap writing mode z index zoom propiedad css line height usa la propiedad css line height para especificar la altura de las líneas de texto definición valores y ejemplos de la propiedad la propiedad line height especifica la altura de una caja de línea controlando el espacio vertical entre las líneas de texto es una de las propiedades más importantes para la legibilidad las líneas demasiado juntas son difíciles de leer mientras que las líneas muy separadas hacen que un párrafo parezca desconectado esta página cubre la sintaxis cada tipo de valor aceptado por qué los valores sin unidades suelen ser la elección correcta y los problemas de accesibilidad y herencia que hay que vigilar line height se comporta de manera diferente según el tipo de elemento en elementos de bloque la propiedad line height establece la altura mínima de las cajas de línea dentro del elemento en elementos en línea no reemplazados establece la altura utilizada en el cálculo de la altura de la caja de línea en elementos en línea reemplazados como botones u otros elementos input line height típicamente no afecta el cálculo de la altura de la caja de línea i información los valores negativos son válidos i información la line height predeterminada es aproximadamente entre 110 y 120 en la mayoría de los navegadores la propiedad line height establece el interlineado del texto si el valor de line height es mayor que el valor de font size de un elemento la diferencia será el interlineado del texto valor inicial normal se aplica a todos los elementos heredado sí animable sí la altura de las líneas es animable versión css1 sintaxis dom object style lineheight 40px sintaxis sintaxis de la propiedad css line height line height normal number length percentage calc initial inherit copiar ejemplo con el valor normal ejemplo de la propiedad css line height con el valor normal doctype html html head title title of the document title style div line height normal style head body h2 line height property example h2 h3 line height normal default h3 div this is a paragraph with a standard line height br the standard line height in most browsers is about 110 to 120 div body html copiar pruébalo tú mismo resultado ejemplo con el valor length ejemplo de la propiedad css line height con el valor px doctype html html head title title of the document title style div line height 10 px style head body h2 line height property example h2 h3 line height 10px h3 div this is a paragraph with a specified line height br the line height here is set to 10 pixels div body html copiar pruébalo tú mismo ejemplo con el valor percentage ejemplo de la propiedad css line height con el valor porcentaje doctype html html head title title of the document title style div line height 200 style head body h2 line height property example h2 h2 line height 200 h2 div this is a paragraph with a bigger line height br the line height here is set to 200 div body html copiar pruébalo tú mismo ejemplo con múltiples valores ejemplo de la propiedad css line height con valores cm px porcentaje normal y number doctype html html head title title of the document title style div a line height 1 div b line height 50 px div c line height 0 5 cm div d line height 1 cm div e line height 200 div f line height normal style head body h2 line height property example h2 h3 line height 1 h3 div class a this is a paragraph with a specified line height br the line height here is set to 1 div h3 line height 50px h3 div class b this is a paragraph with a specified line height br the line height here is set to 50 pixels div h3 line height 0 5cm h3 div class c this is a paragraph with a specified line height br the line height here is set to 0 5 centimeter div h3 line height 1cm h3 div class d this is a paragraph with a specified line height br the line height here is set to 1 centimeter div h3 line height 200 h3 div class e this is a paragraph with a bigger line height br the line height here is set to 200 div h3 line height normal h3 div class f this is a paragraph with a standard line height br the standard line height in most browsers is about 110 to 120 div body html copiar pruébalo tú mismo elección del valor sin unidades frente a con unidades esta es la decisión más importante al establecer line height y depende de cómo se hereda el valor un número sin unidades por ejemplo line height 1 5 se hereda como el factor en sí cada descendiente multiplica el factor por su propio font size por lo que el espaciado siempre se escala correctamente una longitud o porcentaje por ejemplo 1 5em o 150 se calcula una sola vez en el elemento donde se declara y el valor resultante en píxeles se hereda los descendientes con un font size diferente conservan esa altura en píxeles fija lo que puede provocar que el texto se solape compara ambos en un elemento padre cuyo hijo tiene una fuente más grande doctype html html head style recommended each element scales the factor by its own font size good line height 1 5 problematic computed pixel height is inherited as is bad line height 150 child font size 3 em style head body div class good parent text span class child big inherited line scales fine span div div class bad parent text span class child big inherited line may overlap span div body html copiar regla general usa un número sin unidades para el texto del cuerpo recurre a una longitud fija px em solo cuando deliberadamente quieras una caja de línea constante como centrar verticalmente una sola línea de texto haciendo coincidir line height con la altura del elemento accesibilidad el criterio de éxito de espaciado de texto wcag 1 4 12 requiere que el contenido siga siendo legible cuando los usuarios anulan el interlineado a al menos 1 5 veces el tamaño de la fuente un valor de line height sin unidades de 1 5 o más en el texto del cuerpo es un valor predeterminado seguro y accesible y evita que los diseños se rompan cuando un usuario aplica su propio espaciado valores valor descripción pruébalo normal define una altura de línea normal es el valor predeterminado de esta propiedad pruébalo length define una altura de línea fija en px cm em etc pruébalo number define un número que se multiplica por el tamaño de fuente actual para establecer la altura de línea pruébalo define una altura de línea en porcentaje del tamaño de fuente actual pruébalo calc define una altura de línea mediante un cálculo pruébalo initial hace que la propiedad use su valor predeterminado pruébalo inherit hereda la propiedad de su elemento padre nota se recomienda ampliamente usar la unidad em para line heights escalables práctica práctica qué hace la propiedad line height en css qué hace la propiedad line height en css define la cantidad de espacio por encima y por debajo de los elementos en línea altera el ancho de una línea de texto establece la distancia entre las líneas de texto ajusta el tamaño de fuente del texto comprobar was this page helpful yes no previous line clamp next list style on this page sintaxis elección del valor sin unidades frente a con unidades accesibilidad valores práctica w3docs tutoriales ejemplos ejercicios fragmentos y cuestionarios gratuitos para la web desde 2014 libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python práctica ejercicios cuestionarios editor try it herramientas html editor password generator html encoder code diff json beautifier empresa acerca de contacto política de privacidad idioma english deutsch русский français español português italiano 2026 w3docs todos los derechos reservados hecho para desarrolladores
|