CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS border top width Property

CSS border-top-width Property



The border-top-width property is used to set the width of an element top border. It is always used after the border-style or border-top-style property is declared.


Default Value:-


Its default value is medium.




Its syntax is:- border-top-width: medium | thin | thick | length | initial | inherit;


Further Explanation:-


Value Description
medium Specifies a medium top border.
thin Specifies a thin top border
thick Specifies a thick top border
length Allows you to define the thickness of the top border.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS