Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Joomla Gallery free Joomla module.

Topic-icon Howto zoom but not stretch

More
6 years 2 months ago #4450 by patricar
I have several galleries, which size is 660 px width and 300 px height. However, some pics have different proportion and they are redimmensioned to fit that size. Is there an easy way to keep the original height/width proportion?

Please Log in to join the conversation.

More
6 years 2 months ago #4462 by ivan.milic
You can set only one dimension using style or css, the other will be proportional.
example:

If I have :

<img src="logo_w3s.gif" alt="W3Schools.com" height="100" width="100" />

and I want my image height and width 350, then can write like this:

<img src="logo_w3s.gif" alt="W3Schools.com" height="350" />

Please Log in to join the conversation.

Time to create page: 0.099 seconds

Links, Partners and Social Media