Borders
9.4
Lesson

Border Width

The border-width property is used to specify the thickness of the borders.

For specifying values, we can use the standard absolute or relative units or we can use values like thin, medium or thick.

When this property is not set, a medium border appears by default.

An interesting point that we need to remember is that without the border-style property, the border-width will not work. Try removing border-style for any div in the example given above.