The height property (CSS Reference)
Introduction
The height property can be used to set the height of the
element. This can be an image, a text, or any other element. If you have set
the height of an element then you should also set the width or at least you
should not set it to auto. If you do so, the element will be scaled
automatically to a proportional value.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>height Demonstration</title>
</head>
<img
src="http://topxml.com/images/topxml_site.gif" style="height:
200px; width:auto;">
<img
src="http://topxml.com/images/topxml_site.gif" style="height:
100px; width:100;"><br/>
<img src="http://topxml.com/images/topxml_site.gif"
style="height: 100mm; width:100mm;">
<img
src="http://topxml.com/images/topxml_site.gif" style="height:
2.85in; width:2.85in;">
<body>
</body>
</html>
Output

Values
|
Name:
|
Description:
|
|
length
|
The following values can be also used to define the height
of the element:
cm (centimeter)
em (ems)
inch (inches)
mm (millimeters)
pc (picas)
px (pixels)
pt (points)
|
|
percentage
|
This value can be used to define the height of the element
in percentages.
|
|
auto
|
The auto value can be used to set the height
automatically.
|
|