asp.net.ph

Skip Navigation Links

border-top-color Attribute | borderTopColor Property

CSS Attributes Index   Box Attributes


Sets or retrieves the color of the object’s top border.

Syntax


CSS { border-top-color: strColor }
Script object.style.borderTopColor = strColor ]

Possible Values


strColor String that specifies one of the color names or red-green-blue ( RGB ) values in the Color Table. Note Specifying the color as a color name may not be recognized by some browsers, whereas the RGB color value should always be displayed accurately.

The property is read/write with a default value equal to the value of the color property; the CSS attribute is not inherited.

Remarks

The SPAN and DIV objects must have either the position or the width attribute set in order to apply a border.

See Also

border-top, border-top-style, border-top-width



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note