Search.../

borderRadius

Sets or gets the border radius of an element.

Description

The border radius value is a string representing the element's border radius in pixels. For example, "1px".

This style can be used with the following elements:

Type:

stringRead & Write

Was this helpful?

Set the border radius

Copy Code
1$w("#myElement").style.borderRadius = "1px";
Get the border radius

Copy Code
1let borderRadius = $w("#myElement").style.borderRadius; // "1px"