Copyright © tutorialspoint.com
Sets an element's bottom border; value is one or more of a color, a value for border-bottom-width, and a value for border-style
Possible value is one or more of a color, a value for border-width, and a value for border-style.
All the HTML elements.
object.style.borderBottom="2px solid red"; |
The border-bottom property allows you to specify color, style, and width of bottom lines in one property:
Following is the example to show to use all the three properties into a single property.
<p style="border-bottom:4px solid red;"> This example is showing shorthand property for border-bottom. </p> |
This will produce following result:
This example is showing shorthand property for border-bottom. |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com