Skip to content

Require shorthand properties

nzakas edited this page Oct 24, 2011 · 3 revisions

Sometimes when editing a rule you may end up defining multiple properties that can better be represented using shorthand. This rule checks to see if you're using margin-left, margin-right, margin-top, and margin-bottom together and suggests to use just margin instead. The same is done for the variants of padding.

Rule ID: shorthand

Clone this wiki locally