Img tag height and width properties

A

Abstract

How do I stop the height and width properties from being automatically
inserted in the img tags on my web site? I have Preserve existing HTML set
under Page Options, but each time I delete the height and width properties
then save the page, they reappear.
 
T

Thomas A. Rowe

see reply to your other post

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Trevor L.

Sorry, all

I have seen the other posts now.

My reason for not wanting the width and height was that I placed an image in
a page, and then used javascript to replace it with another image. The first
image was just a place holder and very small, so the second image was also
sized to that small size.

I overcame this by getting JS to write the entire HTML code, <img> tag and
all so that FP did not know that there was an image present and try to size
it.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
T

Thomas A. Rowe

Trevor,

You could past the width and height values for each image via your JavaScript code.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Trevor L.

Thomas,

Thanks for that suggestion. I have a mixture of dimensions for my pictures.
Horizontal are 600*400 and vertical are 333*500 so that both fit fairly well
in a 600 by 600 window.

I can amend my JS with a parameter H/V that sets the width and height
appropriately if this will help speed up loading.

I have a couple of others which are 500*500 which I can hard code.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
T

Thomas A. Rowe

Personally, in a sideshow I would crop the images to be all the same size or at least the same
width.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Would look better if all images are cropped to the same size, plus it allows for a smoother
transition between images.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top