HTML and CSS Reference
In-Depth Information
All of the following are valid length values, although the current styles-
conscious browsers do not recognize all units:
1in
1.5cm
+0.25mm
-3pt
-2.5pc
+100em
-2.75ex
250px
8.4.1.3. Percentage property values
Similar to the relative length property value type, a percentage value
describes a proportion relative to some other aspect of the content. It
has an optional sign, meaning it may be added to or subtracted from
the current value for that property, and optional decimal portion to its
numeric value. Percentage values have the percent sign ( % ) suffix. For
example:
line-height: 120%
computes the separation between lines to be 120 percent of the current
line height (usually relative to the text font height). Note that this value
is not dynamic: changes made to the font height after the rule has been
processed by the browser do not affect the computed line height.
8.4.1.4. URL property values
Some properties also accept, if not expect, a URL value. The syntax for
a CSS2 URL property value is different from that in HTML/XHTML:
 
Search WWH ::




Custom Search