CSS Content Properties

2008 Oct 17


Negative not allowed; min & max not supported by IE.
Property Values Initial Value Applies to Inherited Percentage
height <length> | <percentage> | auto | inherit auto block-level and replaced elements no of height of containing block
width <length> | <percentage> | auto | inherit auto block-level and replaced elements no of width of containing block
min-height
max-height
<length> | <percentage> | none | inherit none all elements except nonreplaced inline elements and table elements no of height of containing block
min-width
max-width
<length> | <percentage> | none | inherit none all elements except nonreplaced inline elements and table elements no of widthof containing block
clip rect(top, right, bottom, left) | auto | inherit auto absolutely positioned elements no  
overflow visible | hidden | scroll | auto | inherit visible block-level and replaced elements no  
visibility visible | hidden | collapse | inherit visible all elements no  


Clip

This property only applies to absoluetly positioned element overflow whose oveflow property is hidden. The auto value means do not clip, the shape value specified by rect() causes clipping with distances from top-left. For example:

clip: rect(auto, 0, 2em, 4px);

Overflow


Visibility

This property controls the visibility of an element.