Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Sun, 20 Apr 2008 06:27:01 -0700,    group: microsoft.public.xsl        back       


Referencing a Background Image   
Hi again,

Further to my recent post about: <img src="{$portrait-image}" width="175" 
height="175"/>

I'd like to do the same thing with a Background.  I tried:

<td background="{$portrait-image}" width="200" height="200">Background 
should appear in this cell.</td>

but I can't control the size of the image.  I'd like to be able to reside 
the image.

I want to do it in the background because I'm going to put another table in 
front of it containing text.

Thanks in advance,

Nigel
date: Sun, 20 Apr 2008 06:27:01 -0700   author:   Nigel

Re: Referencing a Background Image   
Nigel wrote:

> Further to my recent post about: <img src="{$portrait-image}" width="175" 
> height="175"/>
> 
> I'd like to do the same thing with a Background.  I tried:
> 
> <td background="{$portrait-image}" width="200" height="200">Background 
> should appear in this cell.</td>
> 
> but I can't control the size of the image.  I'd like to be able to reside 
> the image.
> 
> I want to do it in the background because I'm going to put another table in 
> front of it containing text.

This is not really an XSLT problem as you simply need to use the HTML 
and/or CSS features that are available. As far as I know neither HTML 4 
nor CSS 2.1 allows you to resize a background image so you will have to 
make sure the referenced image has the size you need. Unless you want to 
play with z-index stacking an use an img element below your other stuff.



-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Sun, 20 Apr 2008 16:29:51 +0200   author:   Martin Honnen

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us