Unsized Images

D

David Benson

I am building a web site that will show the current status
of a project. The site will include a large number of
pages dealing with aspects of the project, each of which
will have a couple of Excel graphs and some excerpts from
an MS Project Gantt chart.

I would like to insert these images into the web pages
without the width/height attribute being included. This
is because I can't guarantee the images on a given page
will remain the same from month to month, & I would rather
not have to open each page and reset the image size
attributes.

Unfortunately, I have not been able to find a way to get
FrontPage to include an image without attaching
width/heighth attributes to it. I have tried unchecking
the "Specify size" box on the Picture
Properties/Attributes tab, with and without having
the "Preserve existing HTML" option set. When I look at
the published source in my browser, the size attributes
are still there.

Anyone have any suggestions on how to publish images
without the width/heighth attributes being included?

David Benson
 
T

Thomas A. Rowe

At least with FP2002, any time you save the page, FP will add a width and
height value to an image tag. This didn't happen under FP2000, and not sure
how it is handled in FP2003. In FP2000 you can just switch to HTML view and
remove the values and FP will not change it.

After you save the page in FP, open it in Notepad and remove, then do not
open back in FP.

--

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

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

Guest

Thomas,

Thanks for the prompt reply.

Unfortunately, FP2000 also adds the width and heighth
values back into an image tag when the file is saved.

With "Preserve existing HTML" set, I switched to HTML view
and removed the width and heighth tags from one file. I
then saved the file, closed it, then re-opened it -- the
tags were back. They were also present in the HTML file,
so apparently FP adds them back in when it saves the file.

I was hoping for something a little more elegant than
having to edit all the HTML files in Notepad. As you are
no doubt aware, the HTML source generated by FP is prety
verbose.

I guess this is another example of Microsoft making
unwarranted assumptions about how much help their
customers want!

Thanks anyway,

David
 
T

Thomas A. Rowe

My install of FP2000 doesn't do this, and I do have "Preserve existing HTML"
enabled.

--

==============================================
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