This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Problem with image
- From: Peter Davis <pdavis152 at attbi dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 14 Mar 2002 19:45:08 -0800
- Subject: Re: [xsl] Problem with image
- References: <B8B6D89C.132B%amujicaj@mi-mail.cl>
- Reply-to: xsl-list at lists dot mulberrytech dot com
On Thursday 14 March 2002 18:45, Alvaro Mujica wrote:
> Hi,
> I sent the mail called Process an element depending.. The solution of the
> physical space of the quadrants helped me. I still have a problem though. I
> want to be able to put an image and that although the image could be bigger
> than the space available in the cell it should only be as big as its space.
There is no XSLT solution to this, since XSLT doesn't know anything about
images or .jpg, .bmp, .gif, etc.. It's really an HTML issue.
If you know exactly how big the cells are going to be (and also use absolute
widths in the <td> elements instead of percentages), then you can do <img
width="theWidth" height="theHeight".../>.
Otherwise, since <img width="xx%"> is relative to the original width of the
image and not the surrounding <td>, you will have to use some dynamic HTML to
fetch the size of the surrounding <td> and set it to the image. Can't really
say off the top of my head how to do this.
--
Peter Davis
"... the Mayo Clinic, named after its founder, Dr. Ted Clinic ..."
-- Dave Barry
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list