border-width property
Specifies the width of the element's border.
JavaScript page for this property: borderWidth. You can find other example(s) there. |
Possible values:
One of the following values: | ||||||||||||||||||
|
Description of values:
The width of the border in length units. For the supported length units, see the length page. | |||||||
Takes the value of this property from the computed style of the parent element. | |||||||
Default. | |||||||
Greater than the medium width. | |||||||
Less than the medium width. |
Default: medium.
|
Example HTML code 1:
This example illustrates the use of the border-width property:
|
||||
<head> <style> .example { border-color: blue; border-width: 1px; border-style: solid; } </style> </head> <body> <div class="example">Border-width: 1px</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-style
border-top-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-style
border-top-width
External links:
border-width (MSDN)
border-width (Mozilla Developer Center)
border-width (Safari Reference Library)
border-width (W3C)
border-width (Mozilla Developer Center)
border-width (Safari Reference Library)
border-width (W3C)
User Contributed Comments