Code Editor
Web Browser

What if you don't want the border thickness to be the same on all four sides?

In that case, another version of the border-width property allows you to specify the width for each side of the border.

p { border-style: solid; border-width: 3px 1px 2px 1px; }

The values in the example above refer to the border width in clockwise order (top: 3 pixels, right: 1 pixel, bottom: 2 pixels, left: 1 pixel).

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