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.
The CSS border-top property sets the width, color and line style of the top border of elements. It is a shorthand property for specifying the values of border-top-width, border-top-style and border-top-color. These three values of the shorthand property can be specified in any order, ...
Property border-top 1.0 12.0 4.0 1.0 1.0 3.5Note: See individual browser support for each value below.CSS Syntaxborder-top: border-width border-style border-color|initial|inherit;Property ValuesValueDescription border-top-width Specifies the width of the top border. Default value is "medium" ...
The CSS border-top-color property defines the color of the top border of a box.Syntax The syntax for the border-top-color CSS property is: border-top-color: value; Parameters or Arguments value The color of the top border. It can be one of the following: ValueDescription #RRGGBB Hexadeci...
CSS - border-top Property - CSS border-top property is a shorthand property for setting the border-top properties border-top-width, border-top-style and border-top-color in one single declaration. The border-top-style must be declared to use this prop
border-top-style: dotted border-top-style: dashed border-top-style: solid border-top-style: double border-top-style: inset border-top-style: outset border-top-style: groove border-top-style: ridge border-top-style: window-insetJavaScript page for this property: borderTop. You can find other...
CSS Tutorial>Border> Border-top Theborder-topproperty defines the top border of an element. It is a shorthand that defines the style, width, and color of the top border. It is the combination of the following three properties: border-top-style ...
The border-top shorthand CSS property sets all the properties of an element's top border. Try itAs with all shorthand properties, border-top always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their de...
cssCopy to Clipboard border-top: 1px; border-top: 2px dotted; border-top: medium dashed green; /* Global values */ border-top: inherit; border-top: initial; border-top: revert; border-top: revert-layer; border-top: unset; The three values of the shorthand property can be specified ...
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML.