Welcome to the TutBig today I will show you CSS Measurement Units in Blogger Tutorials. Before we begin the actual exercise, we would like to give a brief idea of CSS Measurement units. CSS supports a number of measurements including absolute units Such as inches, centimeters, points, etc., as well as relative scales such as Percentages and units m. These values need different selection Measurements in your style rules, eg border = "1px in solid red".
We have included all CSS units with appropriate examples:
Unit | Description | Example |
% | The measurement is defined as a percentage Relative to another value, usually Attach the item. | p {font-size: 16pt; line-height: 125%;} |
cm | Specifies the measurement in centimeters. | div {margin-bottom: 2cm;} |
em | Measure relative to height A line in the em spaces. Because of the AD module Equivalent to certain font size, If you set a line to 12 points, all "em" The unit will be 12pt. Thus, it will be 2em 24pt. | p {letter-spacing: 7em;} |
ex | This value specifies the measurement Relative to the x-line-height. x-height Height is determined Small font x. | p {font-size: 24pt; line-height: 3ex;} |
in | Specifies a measurement in inches. | p {word-spacing: .15in;} |
mm | Defines a measurement in millimeters. | p {word-spacing: 15mm;} |
pc | Specifies the measurement in Picas. Becca Equivalent to 12 points; therefore, there Are 6 picts per inch. | p {font-size: 20pc;} |
pt | Defines a measurement in points. A point is defined as 1/72nd of an inch. | body {font-size: 18pt;} |
px | Defines a measurement in screen pixels. | p {padding: 25px;} |