Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
218
The Length Unit (CSS Reference)
Introduction
The Length Unit can be used to define the length of an
element. It is used as a number appended with an abbreviation. The length can
be defined either as relative or absolute. The relative unit specifies the
length, which is relative to another length property. The following table shows
the relative units.
Relative Units
Name:
Description:
em
This unit defines the height of the elements font.
ex
This unit defines the x-height of the elements font.
px
This unit defines the pixel relative to the viewing
device.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
The absolute units are depended on the viewing medium and
are only useful if you know the properties of the medium. The following table
shows the available absolute units.
Absolute Units
Name:
Description:
in
This unit can be used to define the length in inches. 1
inch = 2.54 cm.
cm
This unit can be used to define the length in centimeters.
mm
This unit can be used to define the length in millimeters.
pt
This unit can be used to define the length in points. 1pt
= 1/72in
pc
This unit can be used to define the length in picas. 1pc =
12pt