New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

#border-width

Defines the width of the element's borders.

border-width: 1px;

Defines the width of all borders to 1px.

border-width: 2px 0;

Defines the top and bottom borders to 2px, the left and right to 0.