Name
border-bottom-width, border-left-width, border-right-width, border-top-width — NN 4 IE 4 CSS 1
Synopsis
Inherited: No
Each attribute sets the width of a single border edge of an element.
Note that Navigator’s initial value is zero, which means that
you must set the width for all border attribute settings if you
expect to see the border in Navigator. See also the
border-width attribute for setting the width of
multiple edges in one statement.
CSS Syntax
border-bottom-width: thin | medium | thick |lengthborder-left-width: thin | medium | thick |lengthborder-right-width: thin | medium | thick |lengthborder-top-width: thin | medium | thick |length
JavaScript Equivalent
borderBottomWidth borderLeftWidth borderRightWidth borderTopWidth
Value
Three constants—thin |
medium | thick—allow the
browser to define exactly how many pixels are used to show the
border. For more precision, you can also assign a length value (see
the discussion of length values at the beginning of this chapter).
Initial Value
medium (IE); 0 (NN).
Example
H2 {border-bottom-width: 2px}
DIV {border-left-width: thin}
P.special {border-right-width: 0.5em}Applies To
All elements (CSS and NN); block and replaced elements (IE).
Object Model Reference
- IE
[window.]document.all.elementID.style.borderBottomWidth[window.]document.all.elementID.style.borderLeftWidth[window.]document.all.elementID.style.borderRightWidth[window.]document.all.elementID.style.borderTopWidth
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access