Vertical Height of Graphic/Image Across Devices | XM Community
Skip to main content

Hi everyone!

Basically, I am displaying a picture and just below I am including a multiple choice question that will be displayed horizontally. Essentially, I want the pictures to take up 50% of height (regardless of the device participants are filling out the survey, e.g., computer, Android, iPhone, tablet, etc.). 

Is there an html code I could use to format the sizing of the pictures so it is always 50% vertical height, regardless of participants’ devices?

Any input would be greatly appreciated. Thank you!

In your img element add a style tag style=”height:50vh;”

The vh stands for vertical height.


Leave a Reply