NetTalk Central

Author Topic: How to maintain the iage aspect ratio  (Read 3807 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
How to maintain the iage aspect ratio
« on: January 28, 2009, 11:09:38 AM »
Hi,
In a browse with an image you can set the Height and width but how can we maintain the aspect ratio of that image? for example using the height as the mas height and calculating tha width, and viceversa.
And... what does "Image Alt:" means and does?
Thanks
Alberto
-----------
Regards
Alberto

Jim A

  • Full Member
  • ***
  • Posts: 203
    • View Profile
    • Email
Re: How to maintain the iage aspect ratio
« Reply #1 on: January 28, 2009, 02:49:44 PM »
Hi Alberto:  Alt Image is the text that shows up if the image won't display (because the server can't find it).

If I understand your other question correctly:  just set the height OR the width and the browser should maintain the aspect ratio accordingly.

HTH,

Jim

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: How to maintain the iage aspect ratio
« Reply #2 on: January 28, 2009, 03:46:26 PM »
Thanks Jim! You understood well, but I tried and setting the height or the width does not keep the ratio.
-----------
Regards
Alberto