CSS border-top

Previous Next

Demo of the different values of the border-top property.

Click the property values below to see the result:

border-top: 5px solid red;
border-top: 10px solid red;
border-top: 4px dotted blue;
border-top: 4px dashed blue;
border-top: 4px inset;
border-top: 4px outset;
border-top: 4px ridge;
border-top: 4px groove;
border-top: double;
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.
A demonstration on different ways do add a top border.

Play more with the code in our Tryit yourself editor: Try it Yourself ❯