CSS Attributes Index Box Attributes
Sets or retrieves the style of the object’s top border.
CSS |
{ border-top-style: "none' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' } |
Script |
object.style.borderTopStyle = sStyle ] |
none |
No border is drawn ( regardless of any border-width ). |
dotted |
Border is a dotted line on the Macintosh platform as of Microsoft® Internet Explorer® 4.01, and a solid line on the Windows and Unix platforms. |
dashed |
Border is a dashed line on the Macintosh platform as of Internet Explorer® 4.01, and a solid line on the Windows and Unix platforms. |
solid |
Border is a solid line. |
double |
Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the border-width value. The border width must be at least 3 pixels wide to draw a double border. |
groove |
3-D groove is drawn in colors based on the value. |
ridge |
3-D ridge is drawn in colors based on the value. |
inset |
3-D inset is drawn in colors based on the value. |
outset |
3-D outset is drawn in colors based on the value. |
The property is read/write with a default value of none; this attribute is not inherited.
The SPAN and DIV objects must have either the position or the width property/attribute set in order to apply a border.
A border-width greater than 0 must be set for the border-top-style attribute to render.
border-top, border-top-color, border-top-width