CSS Positioning
Posicionamento CSS
Posicionamento CSS indica em relação a que um elemento é colocado. Pode usar fluxo normal, ele mesmo, um ancestral ou a viewport como referência.
Outro exemplo
Um selo usa posicionamento absoluto dentro de um avatar. O invólucro do avatar usa posicionamento relativo.
Partes principais
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Use-o quando
Use posicionamento quando um elemento tiver um item ou área clara para se manter ancorado.
Não o use quando
Nunca use posicionamento absoluto no lugar de um layout realmente responsivo.
Nome usado no código
position: relative | absolute Antes de lançar
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome: Complete the task with Posicionamento CSS (CSS Positioning). User context: Um selo usa posicionamento absoluto dentro de um avatar. O invólucro do avatar usa posicionamento relativo. Design concept to apply: Posicionamento CSS (CSS Positioning). Why it fits: Use posicionamento quando um elemento tiver um item ou área clara para se manter ancorado. Do not use it when: Nunca use posicionamento absoluto no lugar de um layout realmente responsivo. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary): Um documento formal ainda pode ser rascunho, release candidate ou versão final. Cheque o status e o suporte no navegador ou plataforma. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Conferir este pedido
Review how Posicionamento CSS (CSS Positioning) is used now. Definition: Posicionamento CSS indica em relação a que um elemento é colocado. Pode usar fluxo normal, ele mesmo, um ancestral ou a viewport como referência. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.