CSS border-width property

Usage

Adjusts the width of an element border. Can contain up to four values for adjusting each side individually.

Variations

  • border-top-width
  • border-right-width
  • border-bottom-width
  • border-left-width

Values

  • thin
  • medium - default
  • thick
  • [length] - specifies an explicit border width

Example

Code:

/* All borders medium */
div { border-width: medium }

/* Top and bottom medium, left and right thin */
div { border-width: medium thin }

/* Top medium, left and right thin, bottom thick */
div { border-width: medium thin thick }

/* Top medium, right thin, bottom thick, no left border */
div { border-width: medium thin thick none }