Style borderBottomWidth Property
- Σελίδα Προηγούμενη borderBottomStyle
- Σελίδα Επόμενη borderCollapse
- Επιστροφή στο Προηγούμενο Σχέδιο Όντοτητα Style HTML DOM
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";
Example 2
Change the width of the bottom border of the <div> element to thin:
document.getElementById("myDiv").style.borderBottomWidth = "thin";
Example 3
Return the width of the bottom border of the <div> element:
alert(document.getElementById("myDiv").style.borderBottomWidth);
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 |
- Σελίδα Προηγούμενη borderBottomStyle
- Σελίδα Επόμενη borderCollapse
- Επιστροφή στο Προηγούμενο Σχέδιο Όντοτητα Style HTML DOM