Image border property
Image Object
Definition and Usage
The border property sets or returns the value of the border attribute of an image.
The border attribute specifies the width of the border around the image.
Note: By default an image has no border (unless the image itself comes with a border).
Syntax
imageObject.border=
pixels
Browser support





All major browsers support the border property
Example
Example
Add an image border:
Try it »
Image Object