Wednesday, June 11, 2014

CSS: Default values

Every CSS style has a natural default value. It's just not always none.

Some may be 0 (as in zero).

Some may be auto.

Sometimes inherit is the best option.

Colours can be set to transparent.

If you're unsure what the default is, try creating a dummy page with just a plain unstyled element, and use the browser dev tools to see what the styles are set to.

No comments:

Post a Comment