border-top-style property
Specifies the style of the element's top border.
Available border styles:
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-inset |
JavaScript page for this property: borderTopStyle. You can find other example(s) there. |
Possible values:
One of the following values:
The border looks as though it were embedded in the canvas. | |||||||
The border looks as though it were coming out of the canvas. | |||||||
A solid line is drawn. | |||||||
A series of short line segments is drawn. | |||||||
A series of dots is drawn. | |||||||
A double line border. | |||||||
The border looks as if it has been carved into the background. | |||||||
Turns the border off. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
The border looks as though it were embedded in the canvas. | |||||||
Default. Border width is null. | |||||||
The border looks as though it were coming out of the canvas. | |||||||
The border looks as if it's protruding out of the background. | |||||||
A solid line is drawn. | |||||||
The border looks as though it were embedded in the canvas with an additional single line. |
Default: none.
Example HTML code 1:
This example illustrates the use of the border-top-style property:
|
||||
<head> <style> .example { border-top-color: blue; border-top-width: 1px; border-top-style: dashed; } </style> </head> <body> <div class="example">Border-top-style: dashed</div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, frame, frameSet, H1, H2, H3, H4, H5, H6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:range, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, label, legend, li, listing, marquee, menu, nobr, object, ol, optGroup, option, p, plainText, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, td, textArea, th, tt, u, ul, var, xmp
Related pages:
border
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-collapse
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-spacing
border-style
border-top
border-top-color
border-top-width
border-width
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-collapse
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-spacing
border-style
border-top
border-top-color
border-top-width
border-width
External links:
border-top-style (MSDN)
border-top-style (Mozilla Developer Center)
border-top-style (Safari Reference Library)
border-top-style (W3C)
border-top-style (Mozilla Developer Center)
border-top-style (Safari Reference Library)
border-top-style (W3C)
User Contributed Comments