CSS Dimension ============= The CSS dimension properties allow you to control the height and width of an element. All CSS Dimension Properties ----------------------------- Property Description Values -------------------------------------------------------------------------------- height Sets the height of an element auto, length, %, inherit max-height Sets the maximum height of an element none, length, %, inherit max-width Sets the maximum width of an element none, length, %, inherit min-height Sets the minimum height of an element length, %, inherit min-width Sets the minimum width of an element length, %, inherit width Sets the width of an element auto, length, %, inherit Example 1 ---------

The height and width of this paragraph is 100px.

This is a paragraph with no height and width specified. This is a paragraph with no height and width specified. This is a paragraph with no height and width specified.

Example 2 ---------

Example 3 --------- Example 4 ---------

The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px. The maximum height of this paragraph is set to 50px.

Example 5 ---------

This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.

Example 6 ---------

The minimum height of this paragraph is set to 100px.

Example 7 ---------

The minimum width of this paragraph is set to 150px.