Tuesday, 21 February 2012

Width and Height properties

More recent browsers support the following additional units of measurements (Internet Explorer 5.0 and later supports all of these units):

  • cm—Centimeters.

  • em—Size relative to parent element's size. For example, 2em is twice the size of the parent element.

  • ex—Font size relative to the size of the parent font's lowercase x. For example, a font with the size 2ex is twice the size of the lowercase x in the parent font.

  • in—Inches.

  • mm—Millimeters.

  • %—Percentage.

  • pc—A pica represents 12 points.

  • px—Pixels (the default value).

  • pt—Points (1/72 of an inch).

No comments:

Post a Comment