border property

String get border

The obsolete HTMLImageElement property border specifies the number of pixels thick the border surrounding the image should be. A value of 0, the default, indicates that no border should be drawn.

You should not use this property! Instead, you should use CSS to style the border. The border property or its longhand properties to not only set the thickness of the border but to potentially apply a wide variety of other styling options to it.

The width, specifically, is controlled using the writing-mode aware , , , and properties.

For compatibility (or perhaps other) reasons, you can use the older properties instead (or in addition): , , , and .

Implementation

external String get border;
set border (String value)

Implementation

external set border(String value);