Style borderBottomWidth Property

Definition and Usage

borderBottomWidth Set or return the width of the element's bottom border.

See also:

CSS Tutorial:Περιθώρια CSS

CSS Reference Manual:border-bottom-width property

HTML DOM Reference Manual:border property

Example

Example 1

Change the width of the bottom border of the <div> element to 10px:

document.getElementById("myDiv").style.borderBottomWidth = "10px";

Try It Yourself

Example 2

Change the width of the bottom border of the <div> element to thin:

document.getElementById("myDiv").style.borderBottomWidth = "thin";

Try It Yourself

Example 3

Return the width of the bottom border of the <div> element:

alert(document.getElementById("myDiv").style.borderBottomWidth);

Try It Yourself

Syntax

Return borderBottomWidth property:

object.style.borderBottomWidth

Set borderBottomWidth property:

object.style.borderBottomWidth = "thin|medium|thick|length|initial|inherit"

Attribute Value

Value Description
thin Define thin border.
medium Define medium border. Default.
thick Define thick border.
length Border width in length units.
initial Set this property to its default value. See also initial.
inherit Inherit this property from its parent element. See also inherit.

Technical Details

Default Value: medium
Return Value: A string representing the width of the element's bottom border.
CSS Version: CSS1

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
1.0 4.0 1.0 1.0 3.5