CSS Positioning
Posicionamiento CSS
El posicionamiento CSS indica respecto a qué se coloca un elemento. Puede usar el flujo normal, a sí mismo, un contenedor o la ventana como referencia.
Otro ejemplo
Una insignia usa posicionamiento absoluto dentro de un avatar. El contenedor del avatar usa posicionamiento relativo.
Partes principales
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Úsalo cuando
Usa posicionamiento cuando un elemento tenga un ítem o área clara a la que debe permanecer anclado.
No lo uses cuando
Nunca uses posicionamiento absoluto en lugar de un diseño realmente responsivo.
Nombre usado en código
position: relative | absolute Antes de lanzarlo
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 Posicionamiento CSS (CSS Positioning). User context: Una insignia usa posicionamiento absoluto dentro de un avatar. El contenedor del avatar usa posicionamiento relativo. Design concept to apply: Posicionamiento CSS (CSS Positioning). Why it fits: Usa posicionamiento cuando un elemento tenga un ítem o área clara a la que debe permanecer anclado. Do not use it when: Nunca uses posicionamiento absoluto en lugar de un diseño 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): Un documento formal aún puede ser un borrador, un release candidate o una versión final. Revisa su estado y la compatibilidad con tu navegador o plataforma. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Revisa esta petición
Review how Posicionamiento CSS (CSS Positioning) is used now. Definition: El posicionamiento CSS indica respecto a qué se coloca un elemento. Puede usar el flujo normal, a sí mismo, un contenedor o la ventana como referencia. 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.