How to keep image ratio while resizing?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
nidrig
Posts: 27
Joined: Wed Aug 22, 2018 11:39 am

Hi,

How to keep image ratio while resizing? with css?

I looked at the image popup component but cannot figure it out.

Even if I set the size proportionally, for example: width 79%, height 56%, when the screen is resized, the ratio isn't kept.

Thanks in advance.
nidrig
Posts: 27
Joined: Wed Aug 22, 2018 11:39 am

Follow up: I figured out why the ratio was maintained for the pop up image, it's because it's and external image. And apparently, the external image componant takes care of the resizing.

Thus, the solution was to use an external image instead of an embeded one.
User avatar
Hopki
Gnome
Posts: 13018
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply