Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS min-height definition

Syntax

min-height: <value>;

Description

The min-height property defines the minimum height of an element.

Values

none | <length> | <percentage>

Version information

Available in CSS2

Example

[Try this example yourself]
<style type="text/css">
p.height
{
min-height: 100px
}
</style>

<p class="height">
  This paragraph has a minimum height of 100 pixels.
</p>
<p>This is the next paragraph.</p>

Output

This paragraph has a minimum height of 100 pixels.

This is the next paragraph.

  • Comments

No comments added.