Howto zoom but not stretch

  • patricar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 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
14 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.189 seconds
Powered by Kunena Forum