Chapter 15 : CSS Width and Height Properties
Sunday, 27 May 2012
0
comments
Inherited: No
Height
You can control the height of an element with the height property
height: value;
- auto
- length
- percentage
Line Height
You can control the height between lines with the line-heightproperty
line-height: value;
Values:
- normal
- number
- length
- percentage
Max Height
You can control the maximum height of an element with themax-height property
max-height: value;
Values:
- none
- length
- percentage
Min Height
You can control the minimum height of an element with the min-height property
min-height: value;
Values:
- length
- percentage
Width
You can control the width of an element with the width property
width: value;
Values:
- auto
- length
- percentage
Max Width
You can control the maximum width of an element with themax-width property
max-width: value;
Values:
- none
- length
- percentage
Min Width
You can control the minimum width of an element with the min-width property
min-width: value;
Values:
- length
- percentage