Skip to content

Beware of box model size

nzakas edited this page Oct 24, 2011 · 5 revisions

Borders and padding add space outside of an element's content. Setting width or height along with borders and padding is usually a mistake because you won't get the visual result you're looking for. CSSLint warns when a rule uses width or height in addition to padding and/or border.

Rule ID: box-model

Clone this wiki locally