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.
CSS语法 border-top:border-widthborder-styleborder-color|initial|inherit; 属性值 值描述 border-top-width指定边框的宽度。 默认值是"medium" border-top-style指定边框的样式。 默认值是"none" border-top-color指定边框的颜色。 默认值是该元件的彩色 ...
Version:CSS 1, 2, 3 Syntax The syntax of the property is given with: border-top: [border-top-width border-top-style border-top-color] |initial|inherit The example below shows theborder-topproperty in action. Example Try this code» ...
The CSS border-top-width property defines the width of the top border of a box.Syntax The syntax for the border-top-width CSS property is: border-top-width: value; Parameters or Arguments value The width of the top border of a box. It can be one of the following: ValueDescription fixe...
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.
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" ...
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...
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, ...
DOCTYPE html> Border-top-style property in CSS .border-box { border-top-style: dotted; background-color: blue; height: 90px; width: 90px; border-color: green; } .div { padding: 1px; } Study Tonight Output: Browser Compatibility There are many browsers that do not support...
centerpadding:20px;}.example1{border-top-width:8px;border-top-style:dashed;border-top-color:red;background-color:lightgreen;}.example2{border:2px solid black;border-top-width:8px;border-top-style:dotted;border-top-color:purple;}CSS border-top propertyThis heading has a 'red' color, 'dash...