Have Image Scale Proportionally When Browser Resized?
Posted: Mon Jun 24, 2019 10:54 am
Hello.
I want to have an image that scales 100% horizontally and will scale proportionally when the browser is resized. As an example, if an image were 1000px (width) by 500px (height), the width set to scale 100% - if the browser were resized to 500px width, the height of the image would be 250px (because when the width was reduced, the height was reduced equally). I seem to only be able to get an image to either stretch one way or the other (either only height or width) or it stretches out of proportion (as when filling the entire browser window side to side and top to bottom). I want the image to stretch 100% side to side, but it does not need to fill the entire browser top to bottom (unless the image is taller than the browser is).
My plan is to have three images arranged in rows - one on top, one in the middle, and one at the bottom. The images need to stretch from side to side (100% width) but remain proportional if the browser is resized.
Is this possible in Web Builder? If so, how could I do this?
Thanks in advance.
I want to have an image that scales 100% horizontally and will scale proportionally when the browser is resized. As an example, if an image were 1000px (width) by 500px (height), the width set to scale 100% - if the browser were resized to 500px width, the height of the image would be 250px (because when the width was reduced, the height was reduced equally). I seem to only be able to get an image to either stretch one way or the other (either only height or width) or it stretches out of proportion (as when filling the entire browser window side to side and top to bottom). I want the image to stretch 100% side to side, but it does not need to fill the entire browser top to bottom (unless the image is taller than the browser is).
My plan is to have three images arranged in rows - one on top, one in the middle, and one at the bottom. The images need to stretch from side to side (100% width) but remain proportional if the browser is resized.
Is this possible in Web Builder? If so, how could I do this?
Thanks in advance.
