CSS dimension properties
With CSS dimension properties, you can set the height and width of elements as well as the space between lines.
This tutorial focuses on:
- Setting the height of elements
- Setting the width of elements
- Setting the space between lines
Setting the height of elements
The height of elements is set using the height property.

In the above example, the first image has its default height and the second image is set to have a height of 200 pixels.
Setting the width of elements
The width of elements is set using the width property.
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
In the above example, the first table has its default width and the second table is set to have a width of 200 pixels.
Setting the space between lines
The space between lines is set using the line-height property.
This is a paragraph with regular line spacing. This is the second sentence of the paragraph. This is the third sentence of the paragraph. This is the fourth sentence of the paragraph.
This is a paragraph with small line spacing. This is the second sentence of the paragraph. This is the third sentence of the paragraph. This is the fourth sentence of the paragraph.
This is a paragraph with big line spacing. This is the second sentence of the paragraph. This is the third sentence of the paragraph. This is the fourth sentence of the paragraph.