Helper
Helper

Reputation: 1

Should I include preceding 0 when using decimals in CSS?

Which of the following is preferred when using decimals in CSS?

padding : 0.9em;

or

padding : .9em;

Upvotes: 0

Views: 108

Answers (1)

Justin Skiles
Justin Skiles

Reputation: 9503

Whichever format you and your team have decided on as the standard to reduce complexity and increase readability.

Upvotes: 3

Related Questions