Overview
Sources
Libraries
Images API

Padding Bottom padding-bottom

Specifies a bottom padding size measured in pixels that will be added to the image.

Padding will be affected by the value specified by background-color parameter.

Values

This parameter accepts integer values in the range 0 to 500 with 0 disabling bottom padding.

  • 1: specify a bottom padding size of 1 pixel.
  • 500: specify a bottom padding size of 500 pixels.

Bottom padding will be added not increasing size values if specified. In the case that no size is specified padding will be added to the original image size.

Examples

In this example we are specifying a bottom padding of 40 pixels with padding-bottom=40 without background-color:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?padding-bottom=40
Woman posing with a bottom padding of 40 and a default white background color.
x px

For this example we are applying again a bottom padding of 40 pixels with padding-bottom=40 and a black background with background-color=black:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?padding-bottom=40&background-color=black
Woman posing with a bottom padding of 40 and a black background color.
x px

Applying the same bottom padding with padding-bottom=40 but using an output format with alpha transparency with format=png:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?padding-bottom=40&format=png
Woman posing with a bottom padding of 40 and a default transparent background color using png as output format.
x px

In this example we set a general padding of 40 pixels with padding=40, a specific bottom padding of 80 with padding-bottom=80 and a partial transparent background color with background-color=2B493E80:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?padding=40&padding-bottom=80&background-color=2B493E80&format=png
Woman posing with a bottom padding of 80, a general padding of 40 and a semi-transparent background color using png as output format.
x px