Measurement Units for Image Sizing
When you set the value for a width
, depth
, contentwidth
, or contentdepth
attribute, you can use any of these units:
- px
-
Pixels are the default unit if none is specified.
- pt
-
Points equals 1/72 of an inch.
- cm
-
Centimeters
- mm
-
Millimeters
- pc
-
Picas equals 1/6 of an inch.
- in
-
Inches
- em
-
Ems (the font size of the current surrounding element)
- %
-
Percentage of the available page area for
width
anddepth
OR original image size forcontentwidth
andcontentdepth
.