RATIO PADDING CALCULATOR

Enter the width and height of an element to calculate the vertical padding needed to make element responsive whilst maintaining its aspect ratio.

Example usage: when using a background image and you need the div to be the height of the image.

x
Tags:
Link copied to clipboard.