CSS border-top Property

This CSS tutorial explains how to use the CSS property called border-top with syntax and examples.The CSS border-top property defines the width, line style, and color of the top border of a box. It is a shorthand property for setting the border-top-width, border-top-style, and border-top-color CSS properties.

CSS Syntax

border-top: border-width border-style border-color|initial|inherit;

Example -