Numbers

A number can be specified either as an integer or a real number (one that contains a decimal point), and can have an initial - or + to indicate its sign. Numbers can only be specified in decimal notation. For example, here’s a line-height declaration that uses a number value:

#example {
  line-height: 1.5;
}

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products