Skip to content

Disallow units for zero values

nzakas edited this page Oct 24, 2011 · 2 revisions

An easy way to save bytes in CSS is not include units when a value is 0. For instance, 0px and 0 are the exact same measurement, so leave off the units and save!

Rule ID: zero-units

Clone this wiki locally