Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying horiz. & vert. format images.

Status
Not open for further replies.

gns100

Programmer
Aug 11, 2003
40
US
I'm displaying a slide show of images which rotate. It works except for the following problem.

Some images are in landscape format others are in portrait format. The landscape ones display as they should, however, the portrait ones get squeezed into the horizontal format.

To solve this I removed the height and width values in the following img tag so that I would just use the image values themselves.

Code:
<img border=&quot;2&quot; src=&quot;&quot; name=&quot;showPhotoRotate&quot; align=&quot;center&quot; width=&quot;288&quot; height=&quot;216&quot;>

to give

Code:
<img border=&quot;2&quot; src=&quot;&quot; name=&quot;showPhotoRotate&quot; align=&quot;center&quot;>

This worked when tested on my computer but was changed back to the original when I tried to put it into production on the website. I'm using MS FrontPage.

Is there something I can do to get around this?

Thanks for any help.
 
How did it change back? I presume Frontpage did this?

[whisper]stop using frontpage[/whisper]

Can you edit the file online? Editing it by hand might be the best way or see do you have a setting which stops the program correcting these things.
An alternative might be to edit every image to put it on a square transparent background, so that every image is the same size but looks like it's original, make sense?





<!--#sig value=''É'' url='' -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top