The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Dimensions |
| Previous Style: font-weight | Next Style: ime-mode |


height

Specifies the height of a block element.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later Not supported

See Also:

clip, line-height, max-height, min-height, overflow, width

Possible Values:

auto
The default height according to the normal HTML layout.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 6.0 and later

[length]
An absolute height.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 4.0 and later 6.0 and later

[percentage]
The height as a percentage of the current block size.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 4.0 and later 6.0 and later

Example:
<P>This is a regular paragraph.
<P STYLE="height: 50px; border: thin solid">This is a paragraph that's 50 pixels high.
How It Looks:

This is a regular paragraph.

This is a paragraph that's 50 pixels high.


| Index | Current Category: Dimensions |
| Previous Style: font-weight | Next Style: ime-mode |