Meta tags:
description= A propriedade align-items define o alinhamento dos itens no container. Conheça os valores e veja exemplos de cada um.;
Headings (most frequently used words):
align, items, vs, flex, propriedade, css, entendendo, eixo, transversal, sintaxe, exemplos, valores, problemas, comuns, propriedades, relacionadas, prática, quando, usar, self, content, stretch, padrão, 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), grid (24), eixo (23), html (22), text (22), example (20), font (20), width (19), itens (18), #transversal (16), aprender (15), propriedade (15), container (15), column (15), title (15), com (13), display (13), para (12), stretch (12), content (11), start (11), center (11), são (11), direction (11), padding (11), height (10), end (10), body (10), head (10), bottom (10), top (10), break (10), valor (9), padrão (9), list (9), the (9), right (9), left (9), image (9), animation (9), baseline (8), não (8), row (8), position (8), stroke (8), item (7), alinhamento (7), que (7), testar (7), overflow (7), decoration (7), offset (7), valores (6), page (6), principal (6), self (6), justify (6), vertical (6), você (6), copiar (6), margin (6), type (6), variant (6), w3docs (5), todos (5), linhas (5), como (5), posicionados (5), experimente (5), mesmo (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), exemplo (5), uma (5), wrap (5), transition (5), line (5), last (5), outline (5), radius (5), child (5), formatter (5), generator (4), prática (4), exemplos (4), propriedades (4), sintaxe (4), controla (4), horizontal (4), tem (4), quando (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), quizzes (3), exercícios (3), php (3), javascript (3), alinha (3), longo (3), apenas (3), pai (3), definido (3), tamanho (3), efeito (3), initial (3), linha (3), base (3), fim (3), início (3), object (3), css3 (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), string (3), tools (3), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), beautifier (2), diff (2), password (2), ferramentas (2), python (2), java (2), git (2), livros (2), snippets (2), desde (2), relacionadas (2), problemas (2), comuns (2), entendendo (2), this (2), all (2), quais (2), possíveis (2), grupo (2), vez (2), caso (2), sem (2), fixo (2), elemento (2), inherit (2), faz (2), usar (2), centro (2), preencher (2), texto (2), colocados (2), verticalmente (2), aqui (2), altura (2), definida (2), containers (2), aplica (2), esta (2), uso (2), combine (2), centralizar (2), block (2), nomes (2), direção (2), portanto (2), cada (2), define (2), dos (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, direitos, reservados, feito, desenvolvedores, idioma, política, privacidade, contato, sobre, empresa, try, tutoriais, gratuitos, web, 2014, next, previous, yes, was, helpful, verificar, fixed, static, escolhe, qual, quebradas, substitui, único, naquele, alterar, inteiro, alinhar, use, nesse, muda, ignorado, menos, tenha, nada, acontece, pode, expandi, remova, permitir, esticamento, possuem, herda, seu, expandirem, este, desta, descrição, alinhados, modo, suas, fiquem, niveladas, isso, útil, contêm, diferentes, tamanhos, fonte, deseja, letras, assentem, comum, topo, centralizados, crescem, todo, total, tenham, fixa, alignitems, dom, versão, animável, herdado, inicial, aceita, seguintes, das, possui, múltiplas, única, usa, substituir, aquele, individual, clássico, centralização, centraliza, filhos, margens, posicionamento, absoluto, nos, eixos, antigo, problema, div, resolvido, duas, dois, defina, primeiro, nota, depende, usados, eles, sempre, significam, independentemente, fluem, por, perpendicular, ele, página, explica, percorre, executável, mostra, relaciona, equivalente, conheça, veja, zoom, index, writing, will, change, widows, white, space, user, select, bidi, property, underline, orientation, indent, ink, 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, seletores, selectors, guia, flexbox, guides, gradientes, cores, tabelas, links, class, introdução, basic, entrar, pesquisar, formatters, url, reverse, sha256, md5, length, calculator, colors, hsl, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
propriedade css align items w3docs w3docs livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos quizzes exercícios snippets ferramentas general tools html editor password generator html encoder code diff json beautifier todos os 13 color tools color picker color converter color mixer color hex colors hsl todos os 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder todos os 19 code formatters javascript formatter css formatter html formatter json formatter php formatter pesquisar na w3docs k pt english en deutsch de русский ru français fr español es português pt italiano it entrar aprender css css basic introdução ao css uso do css sintaxe css css id e class css text css font css links tabelas css css border css padding css margin nomes de cores css gradientes css css guides guia do flexbox propriedades css3 css selectors seletores 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 propriedade css align items a propriedade align items define o alinhamento dos itens no container conheça os valores e veja exemplos de cada um a propriedade css align items define o alinhamento padrão dos itens flex e itens de grid ao longo do eixo transversal do container é o equivalente transversal de justify content que alinha os itens ao longo do eixo principal esta página explica o que é o eixo transversal percorre cada valor com um exemplo executável e mostra como align items se relaciona com align self e align content entendendo o eixo transversal em um container flex o eixo principal é a direção em que os itens fluem definida por flex direction o eixo transversal é perpendicular a ele flex direction row o padrão o eixo principal é horizontal portanto o eixo transversal é vertical e align items controla o alinhamento vertical flex direction column o eixo principal é vertical portanto o eixo transversal é horizontal e align items controla o alinhamento horizontal como o eixo depende de flex direction nomes como flex start e flex end são usados em vez de top bottom eles sempre significam início do eixo transversal e fim do eixo transversal independentemente da direção nota align items aplica se apenas a containers flex e grid não tem efeito em um elemento com o display block padrão defina display flex ou display grid no pai primeiro quando usar o caso de uso clássico é o centralização vertical display flex align items center centraliza os filhos verticalmente sem margens ou posicionamento absoluto combine com justify content center para centralizar um item nos dois eixos o antigo problema de centralizar uma div resolvido em duas linhas align items vs align self vs align content align items é definido no container e controla o alinhamento padrão no eixo transversal de todos os itens align self é definido em um item individual para substituir o align items do container apenas para aquele item align content alinha as linhas como um grupo quando o container flex possui múltiplas linhas flex wrap wrap com uma única linha não tem efeito é quando se usa align items esta propriedade é uma das propriedades css3 a propriedade align items aceita os seguintes valores stretch flex start center flex end baseline valor inicial stretch aplica se a containers flex e grid herdado não animável não versão css3 sintaxe dom object style alignitems center sintaxe align items stretch center flex start flex end baseline initial inherit copiar exemplos stretch padrão com stretch os itens crescem para preencher todo o tamanho do eixo transversal do container aqui a altura total desde que não tenham uma altura fixa definida 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 experimente você mesmo center os itens são posicionados no centro do eixo transversal centralizados verticalmente aqui exemplo da propriedade css align items com o 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 experimente você mesmo flex start os itens são colocados no início do eixo transversal no topo com o padrão flex direction row exemplo da propriedade css align items com o 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 experimente você mesmo flex end os itens são colocados no fim do eixo transversal na base com o padrão flex direction row exemplo da propriedade css align items com o 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 experimente você mesmo baseline os itens são alinhados de modo que suas linhas de base do texto fiquem niveladas isso é útil quando os itens contêm texto de diferentes tamanhos de fonte e você deseja que as letras assentem em uma linha comum exemplo da propriedade css align items com o 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 experimente você mesmo valores valor descrição testar stretch faz os itens se expandirem para preencher o container este é o valor padrão desta propriedade testar center os itens são posicionados no centro do container testar flex start os itens são posicionados no início do container testar flex end os itens são posicionados no fim do container testar baseline os itens são posicionados na linha de base do container testar initial faz a propriedade usar seu valor padrão testar inherit herda a propriedade do elemento pai problemas comuns stretch não tem efeito se os itens possuem tamanho fixo no eixo transversal se um item já tem height definido em um container row stretch não pode expandi lo remova o tamanho fixo para permitir o esticamento nada acontece sem um container flex grid align items é ignorado a menos que o pai tenha display flex ou display grid o eixo muda com flex direction column nesse caso align items controla o alinhamento horizontal não o vertical para alinhar apenas um item use align self naquele item em vez de alterar o container inteiro propriedades relacionadas justify content alinhamento ao longo do eixo principal align self substitui align items para um único item align content alinha linhas quebradas como um grupo flex direction escolhe qual eixo é o principal prática prática quais são os valores possíveis para a propriedade align items em css quais são os valores possíveis para a propriedade align items em css stretch center flex start baseline static fixed verificar was this page helpful yes no previous align content next all on this page entendendo o eixo transversal sintaxe exemplos valores problemas comuns propriedades relacionadas prática w3docs tutoriais exemplos exercícios snippets e quizzes gratuitos para a web desde 2014 livros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python prática exercícios quizzes editor try it ferramentas html editor password generator html encoder code diff json beautifier empresa sobre contato política de privacidade idioma english deutsch русский français español português italiano 2026 w3docs todos os direitos reservados feito para desenvolvedores
|