Unsized Image in FP2000

  • Thread starter David W. Benson, Jr.
  • Start date
D

David W. Benson, Jr.

Is there any way in Front Page 2000 to embed an image in a web page without
having the width and height included in the command?

I create pages that display an image file. The image file is replaced from
time to time, independently of FP, with a new image file that has the same
name (the idea is to update the image without having to open the page in FP
and modify name of the image file in the <img> tag).

I cannot guaranty that the new image file will have exactly the same
dimensions as the one it replaced. Therefore, I would like to have the HTML
statement that loads the image not specify a width and height. As far as I
can tell, however, FP2000 always inserts the width and height, even if I
uncheck the "Specify Size" checkbox on the Appearance tab of the Insert
Image dialog.

What I would like:

<img border="0" src="myfile.gif">

What Front Page produces:

<img border="0" src="myfile.gif" width="961" height="661">

Does anyone know of a way to make FP omit the width and height?

Thanks in advance.


David Benson
(Return address is munged - replace "invalid" with "l-m-c-o" without the
dashes)
 
T

Thomas A. Rowe

Make sure that you have FP set to not modify HTML under Tools | Page Options
| HTML Source, then insert your initial image, then right click the image,
properties, appearance tab, then delete any values in the width and height
field. or switch to HTML view and delete them.

--

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

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

David W. Benson, Jr.

Thomas,

Thanks for the quick reply.

I think I am already doing all of that, but I still have the problem.

In Tools | Page Options | HTML Source, I have:
"Preserve existing HTML" IS checked
"Reformat using the rules below" IS NOT checked
"Tag names are lowercase" IS checked
"Attribute names are in lowercase" IS checked
"Allow line breaks within tags" IS NOT checked

I switched to HTML view and deleted the Width and Height portions of the
<img> tag, then saved the file and closed it. When I re-opened it, the
Width and Height clauses were back.

If I look on the Image Properties | Appearance tab, the "Specify size" box
is unchecked. This is true both before and after saving the file.

Can you see anything I am doing wrong?

Thanks again.

David Benson
 
T

Thomas A. Rowe

David,

This always works for me, but then I am loading the images via a call to a
database. So it seem as long as FP can physically access the image
referenced on the page, it will set the width and height values. Can you get
away with just specifying the width value, which it what I do most of the
time, as I am not really concerned with the height, main I develop ecommerce
type sites.

--

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

FrontPage Resources, Forums, 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

Similar Threads

Adding text over a graphic image 4
I don't remember.... 8
Frontpage template ?? 1
Inserting html for ad redirect 6
Web Site Code Anomally? 1
usemap and CSS 2
Unsized Images 3
Gallery problem 12

Top