Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style borderBottom property

Style borderBottom property

Style Object Reference The Style object


Definition and Usage

The borderBottom property sets or returns three separate bottom border properties in shorthand form.

With this property, you can set/return:

Syntax

Set the borderBottom property:

Object.style.borderBottom="

width style color

"

Return the borderBottom property:

Object.style.borderBottom

**Tip:** The borderBottom property has no default value.

Parameters Description
width Sets the width of the bottom border.
style Sets the style of the bottom border.
color Sets the color of the bottom border.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the borderBottom property.


Example

Example

Change the width, style, and color of the bottom border:

Runoob Tutorial(runoob.com)
This is some text.

Try it »


Style Object Reference The Style object