[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with image
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|