Meta tags:
description= La propiedad align-items especifica la alineación de los elementos en el contenedor. Aprende sobre sus valores y prueba ejemplos de cada uno.;
Headings (most frequently used words):
align, items, vs, flex, propiedad, css, entendiendo, el, eje, transversal, sintaxis, ejemplos, valores, errores, comunes, propiedades, relacionadas, práctica, cuándo, usarlo, self, content, stretch, predeterminado, center, start, end, baseline,
Text of the page (most frequently used words):
flex (52), align (50), style (45), border (39), items (37), color (33), css (31), background (27), los (26), eje (24), html (22), grid (21), text (21), example (20), font (20), width (19), elementos (18), #transversal (16), aprender (15), propiedad (15), del (15), contenedor (15), column (15), title (15), con (13), que (13), display (13), stretch (12), pruébalo (12), para (11), content (11), start (11), center (11), direction (11), padding (11), height (10), valor (10), end (10), body (10), head (10), bottom (10), top (10), break (10), elemento (9), list (9), the (9), right (9), left (9), image (9), animation (9), baseline (8), position (8), stroke (8), alineación (7), predeterminado (7), row (7), overflow (7), decoration (7), offset (7), valores (6), page (6), principal (6), self (6), justify (6), vertical (6), copiar (6), margin (6), type (6), variant (6), w3docs (5), colocan (5), mismo (5), gray (5), ccc (5), blue (5), 1c87c9 (5), green (5), 8ebf42 (5), none (5), 000 (5), solid (5), 300 (5), 220 (5), document (5), doctype (5), ejemplo (5), wrap (5), transition (5), line (5), last (5), outline (5), radius (5), child (5), formatter (5), generator (4), práctica (4), ejemplos (4), propiedades (4), sintaxis (4), las (4), líneas (4), controla (4), horizontal (4), tiene (4), una (4), establece (4), mode (4), transform (4), fill (4), size (4), template (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), alinea (3), como (3), largo (3), ese (3), solo (3), padre (3), sin (3), tamaño (3), hace (3), initial (3), línea (3), inicio (3), este (3), esta (3), texto (3), caso (3), object (3), css3 (3), cuadrícula (3), por (3), word (3), spacing (3), range (3), origin (3), before (3), after (3), max (3), letter (3), columns (3), auto (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), fragmentos (2), relacionadas (2), errores (2), comunes (2), entendiendo (2), this (2), all (2), cuáles (2), son (2), posibles (2), grupo (2), individual (2), lugar (2), nada (2), fijo (2), inherit (2), posicionan (2), base (2), final (2), centro (2), sus (2), cuando (2), parte (2), verticalmente (2), altura (2), siempre (2), contenedores (2), aplica (2), efecto (2), predeterminada (2), uso (2), centrar (2), block (2), nombres (2), dirección (2), cada (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), flow (2), feature (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, fixed, static, elige, cuál, envueltas, anula, cambiar, todo, alinear, usa, entonces, cambia, ignora, menos, tenga, ocurre, fila, puede, expandirlo, elimina, permitir, estire, tienen, hereda, use, estiren, ajustarse, descripción, alinean, modo, queden, alineadas, esto, útil, contienen, diferentes, tamaños, fuente, desea, letras, sitúen, común, inferior, superior, centrados, crecen, llenar, completo, total, tengan, fija, propia, alignitems, dom, versión, animable, heredada, inicial, acepta, siguientes, múltiples, sola, momento, recurre, filas, anular, clásico, centrado, centra, hijos, márgenes, posicionamiento, absoluto, combínalo, ejes, longevo, problema, div, resuelto, dos, ambos, cuándo, usarlo, primero, nota, dado, depende, usan, significan, fin, importar, fluyen, establecida, corre, perpendicular, página, explica, qué, recorre, ejecutable, muestra, cómo, relaciona, contraparte, especifica, aprende, sobre, prueba, uno, zoom, index, writing, will, change, widows, white, space, user, select, bidi, property, 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, clamp, keyframes, isolation, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, language, override, adjust, kerning, values, settings, family, face, float, shrink, grow, basis, filter, cells, cursor, reset, increment, span, clear, charset, caret, caption, side, sizing, source, slice, outset, collapse, bleed, attachment, backface, appearance, play, state, name, iteration, properties, visited, valid, target, selection, scope, root, required, write, placeholder, out, optional, not, link, lang, invalid, indeterminate, hover, fullscreen, focus, enabled, disabled, dir, default, checked, active, selectores, selectors, guía, flexbox, guides, gradientes, colores, tablas, links, class, introducción, basic, iniciar, sesión, buscar, formatters, url, reverse, sha256, md5, length, calculator, colors, hsl, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
propiedad css align items 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 align items la propiedad align items especifica la alineación de los elementos en el contenedor aprende sobre sus valores y prueba ejemplos de cada uno la propiedad css align items establece la alineación predeterminada para los elementos flex y los elementos de cuadrícula a lo largo del eje transversal de su contenedor es la contraparte en el eje transversal de justify content que alinea los elementos a lo largo del eje principal esta página explica qué es el eje transversal recorre cada valor con un ejemplo ejecutable y muestra cómo align items se relaciona con align self y align content entendiendo el eje transversal en un contenedor flex el eje principal es la dirección en la que fluyen los elementos establecida por flex direction el eje transversal corre perpendicular a él flex direction row el valor predeterminado el eje principal es horizontal por lo que el eje transversal es vertical y align items controla la alineación vertical flex direction column el eje principal es vertical por lo que el eje transversal es horizontal y align items controla la alineación horizontal dado que el eje depende de flex direction se usan nombres como flex start y flex end en lugar de top bottom siempre significan inicio del eje transversal y fin del eje transversal sin importar la dirección nota align items solo se aplica a contenedores flex y de cuadrícula no tiene efecto en un elemento con el display block predeterminado primero establece display flex o display grid en el padre cuándo usarlo el caso de uso clásico es el centrado vertical display flex align items center centra los hijos verticalmente sin márgenes ni posicionamiento absoluto combínalo con justify content center para centrar un elemento en ambos ejes el longevo problema de centrar un div resuelto en dos líneas align items vs align self vs align content align items se establece en el contenedor y controla la alineación predeterminada en el eje transversal de todos los elementos align self se establece en un elemento individual para anular el align items del contenedor solo para ese elemento align content alinea las filas como grupo cuando el contenedor flex tiene múltiples líneas flex wrap wrap con una sola línea no tiene efecto ese es el momento en que se recurre a align items esta propiedad es una de las propiedades css3 la propiedad align items acepta los siguientes valores stretch flex start center flex end baseline valor inicial stretch se aplica a contenedores flex y de cuadrícula heredada no animable no versión css3 sintaxis dom object style alignitems center sintaxis align items stretch center flex start flex end baseline initial inherit copiar ejemplos stretch predeterminado con stretch los elementos crecen para llenar el tamaño completo del eje transversal del contenedor en este caso la altura total siempre que no tengan una altura fija propia doctype html html head title title of the document title style example width 220 px height 300 px padding 0 border 1 px solid 000 display flex align items stretch example li flex 1 list style none style head body h2 align items stretch example h2 ul id example li style background color 8ebf42 green li li style background color 1c87c9 blue li li style background color ccc gray li ul body html copiar pruébalo tú mismo center los elementos se posicionan en el centro del eje transversal centrados verticalmente en este caso ejemplo de la propiedad css align items con el valor center doctype html html head title the title of the document title style example width 220 px height 300 px padding 0 border 1 px solid 000 display flex align items center example li flex 1 list style none style head body h2 align items center example h2 ul id example li style background color 8ebf42 green li li style background color 1c87c9 blue li li style background color ccc gray li ul body html copiar pruébalo tú mismo flex start los elementos se colocan al inicio del eje transversal en la parte superior con el flex direction row predeterminado ejemplo de la propiedad css align items con el valor flex start doctype html html head title the title of the document title style example width 220 px height 300 px padding 0 border 1 px solid 000 display flex align items flex start example li flex 1 list style none style head body h2 align items flex start example h2 ul id example li style background color 8ebf42 green li li style background color 1c87c9 blue li li style background color ccc gray li ul body html copiar pruébalo tú mismo flex end los elementos se colocan al final del eje transversal en la parte inferior con el flex direction row predeterminado ejemplo de la propiedad css align items con el valor flex end doctype html html head title the title of the document title style example width 220 px height 300 px padding 0 border 1 px solid 000 display flex align items flex end example li flex 1 list style none style head body h2 align items flex end example h2 ul id example li style background color 8ebf42 green li li style background color 1c87c9 blue li li style background color ccc gray li ul body html copiar pruébalo tú mismo baseline los elementos se alinean de modo que sus líneas de base de texto queden alineadas esto es útil cuando los elementos contienen texto de diferentes tamaños de fuente y se desea que las letras se sitúen en una línea común ejemplo de la propiedad css align items con el valor baseline doctype html html head title the title of the document title style example width 220 px height 300 px padding 0 border 1 px solid 000 display flex align items baseline example li flex 1 list style none style head body h2 align items baseline example h2 ul id example li style background color 8ebf42 green li li style background color 1c87c9 blue li li style background color ccc gray li ul body html copiar pruébalo tú mismo valores valor descripción pruébalo stretch hace que los elementos se estiren para ajustarse al contenedor este es el valor predeterminado de esta propiedad pruébalo center los elementos se colocan en el centro del contenedor pruébalo flex start los elementos se colocan al inicio del contenedor pruébalo flex end los elementos se colocan al final del contenedor pruébalo baseline los elementos se posicionan en la línea de base del contenedor pruébalo initial hace que la propiedad use su valor predeterminado pruébalo inherit hereda la propiedad de su elemento padre errores comunes stretch no hace nada si los elementos tienen un tamaño fijo en el eje transversal si un elemento ya tiene un height en un contenedor de fila stretch no puede expandirlo elimina el tamaño fijo para permitir que se estire nada ocurre sin un contenedor flex grid align items se ignora a menos que el padre tenga display flex o display grid el eje cambia con flex direction column entonces align items controla la alineación horizontal no la vertical para alinear solo un elemento usa align self en ese elemento en lugar de cambiar todo el contenedor propiedades relacionadas justify content alineación a lo largo del eje principal align self anula align items para un elemento individual align content alinea las líneas envueltas como grupo flex direction elige cuál eje es el principal práctica práctica cuáles son los posibles valores de la propiedad align items en css cuáles son los posibles valores de la propiedad align items en css stretch center flex start baseline static fixed comprobar was this page helpful yes no previous align content next all on this page entendiendo el eje transversal sintaxis ejemplos valores errores comunes propiedades relacionadas 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
|