CSS Positioning
CSS-Positionierung
CSS-Positionierung bestimmt, woran ein Element ausgerichtet wird. Als Referenz dient der normale Textfluss, das Element selbst, ein Vorfahre oder der sichtbare Bereich.
Ein weiteres Beispiel
Ein Badge nutzt absolute Positionierung innerhalb eines Avatars. Der Avatar-Wrapper nutzt relative Positionierung.
Hauptteile
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Verwenden Sie es, wenn
Verwenden Sie Positionierung, wenn ein Element einen klaren Punkt oder Bereich hat, an dem es verankert bleiben soll.
Nutze es nicht, wenn
Verwende niemals absolute Positionierung anstelle eines echten responsiven Layouts.
In Code verwendeter Name
position: relative | absolute Vor dem Ausliefern
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 CSS-Positionierung (CSS Positioning). User context: Ein Badge nutzt absolute Positionierung innerhalb eines Avatars. Der Avatar-Wrapper nutzt relative Positionierung. Design concept to apply: CSS-Positionierung (CSS Positioning). Why it fits: Verwenden Sie Positionierung, wenn ein Element einen klaren Punkt oder Bereich hat, an dem es verankert bleiben soll. Do not use it when: Verwende niemals absolute Positionierung anstelle eines echten responsiven Layouts. 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): Ein formelles Dokument kann trotzdem ein Entwurf, ein Release Candidate oder die finale Version sein. Prüfe seinen Status und die Browser- oder Plattform-Unterstützung. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Diese Anfrage prüfen
Review how CSS-Positionierung (CSS Positioning) is used now. Definition: CSS-Positionierung bestimmt, woran ein Element ausgerichtet wird. Als Referenz dient der normale Textfluss, das Element selbst, ein Vorfahre oder der sichtbare Bereich. 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.