Make your own free website on Tripod.com

Height

Syntax : height : value
Possible Values : length | auto
Initial Value : auto
Applies to : Block-level and replaced elements
Inherited : No

Each block-level or replaced element can be given a height, specified as a width property, height can be used to scale an image:

IMG.bg { width: 20px; height: 20px }

In most cases, authors are advised to scale the image in an image editing program, since browsers will not likely scale images with high quality, and since scaling down causes the user to download an unnecessarily large file. However, scaling through the width and height properties is a useful option for user-defined style sheets in order to overcome vision problems.