Border | Flextype Documentation

Border

border

Add a border to the image. Required format: width, color, method.

Width

Sets the border width in pixels, or using relative dimensions.

Color

Sets the border color. See supported colors for more information on the available color formats.

Method

Sets how the border will be displayed. Available options:

  • overlay - Place border on top of image (default).
  • shrink - Shrink image within border (canvas does not change).
  • expand - Expands canvas to accommodate border.

Example:

<img src="{{ base_url() }}/image/en/content/media/image.jpg?border=10,5000,overlay">
<img src="{{ base_url() }}/image/en/content/media/image.jpg?border=10,FFCC33,expand">

Result:

Language: en, ru