CSS unit and sizes

The main theme of the collection is the standard style sheet properties which may be imposed on the selected element. A full CSS specification defines several dozen properties. For example – text-indent, table-header, etc. How everything will fall into their sound.

Depending on the value of a property. Some measure of the value of the length of the property value by taking some of the properties of color. It is important to know when to use properties that it will receive any value. In many cases, however, you can see it with common sense.

Imparting a measure of value
When a measurement value will be paid, after the number of the unit to sit. Prior to the unit (ie before the em) If any of the properties will not work if the space is given. For example:

Length units:
Note -1: em has a multiplicative effect. So when it is used, the size becomes small or large.

Note II: Standards as a reference pixel to pixel block is called. A 96 percent share of 1 pixel equals one inch. The general format is shown graphically below:

Example: CSS relative unit:
CSS units Percentage (%)
We reveal the relativity of value to a value of a percentage (%) use. The value of the numbers after the percent sign (%) is. For example, 50,453%, 45,342%.

Leave a Reply

Your email address will not be published. Required fields are marked *