border Border Size & Color


  • Default: None
  • Format: M,NNN
    • M: Integer representing the width of the border in pixels
    • NNN: Any 3- (RGB), 4- (ARGB) 6- (RRGGBB) or 8-digit (AARRGGBB) hexadecimal value, representing the border color. The “A” in a 4- or 8-digit hex value represents the color’s alpha transparency.

Draws a border around the image, in the width and color defined. The border will overlap the image rather than altering its size. The default is no border, and both the width and color value are required.

To round the corners on a bordered image, check out the border-radius and border-inner-radius parameters.