Question

If I had a box 100px wide by 50px high, so the area is 500px squared. what is the formula for calculating the new height and width of the container in pixels if I wanted to increase the overall area by 20% or 50% or whatever?

Was it helpful?

Solution

I'll assume you want to keep the width/height proportional.

If you want to increase the area by 20% (multiplied by 1.20), multiply both the width and height by the square root of 1.20.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top