Style borderLeftWidth Attribute
- Nakaraang Pahina borderLeftStyle
- Susunod na Pahina borderRadius
- Bumalik sa nakaraang Lebel Object ng Style ng HTML DOM
Definition and Usage
borderLeftWidth
Sets or returns the width of the element's left border.
See Also:
CSS Tutorial:CSS Bordo
CSS Reference Manual:border-left-width Attribute
HTML DOM Reference Manual:border Attribute
Example
Example 1
Changes the left border width of the <div> element to 10px:
document.getElementById("myDiv").style.borderLeftWidth = "10px";
Example 2
Changes the left border width of the <div> element to thin:
document.getElementById("myDiv").style.borderLeftWidth = "thin";
Example 3
Returns the width of the left border of the <div> element:
alert(document.getElementById("myDiv").style.borderLeftWidth);
Syntax
Returns borderLeftWidth attribute:
object.style.borderLeftWidth
Sets borderLeftWidth attribute:
object.style.borderLeftWidth = "thin|medium|thick|length|initial|inherit"
Attribute Value
Value | Description |
---|---|
thin | Defines thin border. |
medium | Defines medium border. Default. |
thick | Defines thick border. |
length | Border width in length units. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical Details
Default Value: | medium |
---|---|
Return Value: | A string that represents the width of the element's left border. |
CSS Version: | CSS1 |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Suporta | Suporta | Suporta | Suporta | Suporta |
- Nakaraang Pahina borderLeftStyle
- Susunod na Pahina borderRadius
- Bumalik sa nakaraang Lebel Object ng Style ng HTML DOM