Code Editor
Web Browser
Learn

If you'd like to be even more specific about the width of different sides of the border, you can use the following properties:

  1. border-top-width
  2. border-right-width
  3. border-bottom-width
  4. border-left-width

Each property affects the width of only one side of the border, giving you more flexibility in customization.

p { border-style: solid; border-left-width: 4px; }

In the example above, only the left side of the border will be set to a width of 4 pixels.

Report a Bug
If you see a bug or any other issue with this page, please report it here.