Box Model
Modello a scatola
Il modello a scatola CSS spiega la dimensione di un elemento. Ogni scatola ha contenuto, padding, bordo e margine.
Un altro esempio
Una scheda da 320px non trabocca più dopo che border-box include il suo padding e il bordo in quella larghezza.
Parti principali
- 01Outer constraint
- 02Content and spacing model
- 03Computed size or reflow result
Usalo quando
Controlla il modello a scatola quando la dimensione reale non corrisponde alla larghezza o altezza impostata.
Non usarlo quando
Non coprire mai un errore del box-model con numeri che non hanno un motivo chiaro.
Nome usato nel codice
box-sizing: border-box 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 Modello a scatola (Box Model). User context: Una scheda da 320px non trabocca più dopo che border-box include il suo padding e il bordo in quella larghezza. Design concept to apply: Modello a scatola (Box Model). Why it fits: Controlla il modello a scatola quando la dimensione reale non corrisponde alla larghezza o altezza impostata. Do not use it when: Non coprire mai un errore del box-model con numeri che non hanno un motivo chiaro. 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 Modello a scatola (Box Model) is used now. Definition: Il modello a scatola CSS spiega la dimensione di un elemento. Ogni scatola ha contenuto, padding, bordo e margine. 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.