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

How to keep image ratio while resizing?

Post by nidrig » Sun Oct 07, 2018 6:36 pm

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

Re: How to keep image ratio while resizing?

Post by nidrig » Mon Oct 08, 2018 8:16 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: 9365
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: How to keep image ratio while resizing?

Post by Hopki » Mon Oct 08, 2018 10:19 pm

:D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest