htmlcss

The border-top-width property is used in CSS and certain HTML elements. This property controls the thickness (width) of the top side of the border of an element's rendering box. Negative values are not allowed. To specify the border width for all sides, use border-width. To specify the width for the other three sides, use border-right-width, border-bottom-width, and border-left-width.

Values


HTML example:

<h1 style="border-top-width:thin;">
H1 content.
</h1>


CSS example:

h1 {
    border-top-width:thin;
}