CSS border-bottomProperty


Example

Set the bottom border style:

p { border-style:solid; border-bottom:thick dotted #ff0000; }

Try it Yourself »

Tag definition and usage instructions

The border-bottom shorthand property sets all bottom border properties in one declaration.

Can be setofPropertyseparately(pressSequence):border-bottom-width, border-bottom-style,andborder-bottom-color.

It doesn't matter if one of the above values is missing; for example, border-bottom: #FF0000; is allowed.

Default Value: not specified
Inherited: no
version: CSS1
JavaScript Syntax: object object.style.borderBottom="3px solid blue"


Browser Support

The numbers in the table indicate the first browser version number that supports the property.

Property
border-bottom 1.0 4.0 1.0 1.0 3.5

Property value

Value Description
border-bottom-width Specify the bottom border width
border-bottom-style Specify the bottom border style
border-bottom-color Specify the bottom border color
inherit Specifies that the border-bottom property value should be inherited from the parent element.


Related Articles

CSS Tutorial:CSS Borders

other extensions