Search...
borderWidth
Sets or gets the border width of an element.
Description
The border width value is a string representing the element's border
width in pixels. For example, "1px"
.
This style can be used with the following elements:
Type:
stringRead & Write
Was this helpful?
Set the border width
Copy Code
1$w("#myElement").style.borderWidth = "1px";
Get the border width
Copy Code
1let borderWidth = $w("#myElement").style.borderWidth; // "1px"