Loading...

Border width properties

Set the border width on an element.

Border width top, bottom, left and right

Set the border width of each side individually using TopBottomLeft and Right.

Expected value:

  • Enter a number (Negative values are not accepted)
  • Enter a keyword - thin, medium, thick (Browsers may render these widths differently)

Accepted units:

You can leave blank or specify a unit to be used.

  • blank - Enter a number and the value will be interpreted as pixels
  • px - The value will be applied in pixels

Note: Additional units are accepted. For more information see https://www.w3schools.com/cssref/css_units.asp

Border width equal

Set the border width on all sides of an element. Equal width and individual side widths can be used together. An individual side width will override the equal width on that side.

Expected value:

  • Enter a number (Negative values are not accepted)
  • Enter a keyword - thin, medium, thick (Browsers may render these widths differently)

Accepted units:

You can leave blank or specify a unit to be used.

  • blank - Enter a number and the value will be interpreted as pixels
  • px - The value will be applied in pixels

Note: Additional units are accepted. For more information see https://www.w3schools.com/cssref/css_units.asp

Find more information at https://developer.mozilla.org/en-US/docs/Web/CSS/border-width

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation