CSS Positioning
Posizionamento CSS
Il posizionamento CSS indica contro cosa un elemento viene posizionato. Può utilizzare il flusso normale, se stesso, un antenato o il viewport come riferimento.
Un altro esempio
Un badge usa il posizionamento assoluto dentro un avatar. Il contenitore dell'avatar usa il posizionamento relativo.
Parti principali
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Usalo quando
Usa il posizionamento quando un elemento ha un oggetto o un'area chiara a cui rimanere ancorato.
Non usarlo quando
Non usare mai il posizionamento assoluto al posto di un vero layout responsivo.
Nome usato nel codice
position: relative | absolute Prima di spedire
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 Posizionamento CSS (CSS Positioning). User context: Un badge usa il posizionamento assoluto dentro un avatar. Il contenitore dell'avatar usa il posizionamento relativo. Design concept to apply: Posizionamento CSS (CSS Positioning). Why it fits: Usa il posizionamento quando un elemento ha un oggetto o un'area chiara a cui rimanere ancorato. Do not use it when: Non usare mai il posizionamento assoluto al posto di un vero layout 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 formale può ancora essere una bozza, un release candidate o la versione finale. Controlla il suo stato e il supporto per browser o piattaforma. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Controlla questa richiesta
Review how Posizionamento CSS (CSS Positioning) is used now. Definition: Il posizionamento CSS indica contro cosa un elemento viene posizionato. Può utilizzare il flusso normale, se stesso, un antenato o il viewport come riferimento. 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.