CSS Units and Dimensions
Dimensions
CSS dimension properties used to control the height and width of an element.
Properties:
width, height, max-width and max-height etc.
Ex.
div {
width: 300px;
height: 200px;
}
Units:
Units are used to specify non-zero length value in CSS properties.
Properties:
Define using pixels, %, and em, etc. units.
Ex.
P {
font-size: 10px;
line-height: 2.4em;
}