• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. CSS UNITS > Length Units

Length Units

One of the chief benefits of CSS to Web authors is the fact that you can finally specify many standard units of measure to such things as borders, font sizes, and margins. There are eight units of measure that can be used with CSS properties: inches, millimeters, centimeters, picas, points, pixels, m-lengths and x-heights. All of these units of measure can be specified by using a two-letter contracted form: inches = IN, millimeters = MM, centimeters = CM, pica = PC, point = PT, pixels = PX, m-length = EM, and x-height = EX. Units of measure are not case-sensitive, so you could use either "MM" or "mm" to set a measure for a given CSS rule when using millimeters.

Units of Measure

There are eight units of measure that can be used in combination with CSS properties:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint