Laurie Harper wrote:
> 
> José Carlos Ortiz wrote:
>> Hello,
>> 
>> Does anybody know how to put an image inside a <html:submit> tag. I can't
>> use the background-image css property because the image has transparent
>> fragments and I need this fragments to be the same color of the text
>> (text
>> is white and the background is other color).
> 
> Err, I don't think there's any way to make transparent portions of an 
> image render as foreground colour rather than background colour, how 
> ever you get the image displayed.
> 
>> If I try to use an <html:img> inside the <html:submit> it doesn't work.
>> Any
>> idea? any solution?
> 
> The <html:image> tag [1] may be what you're looking for.
> 
> L.
> 
> [1] http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/image.html
> 
> 

I'm using this:

<html:submit property="op" titleKey="boton.ayuda.eliminar"
styleClass="botonesPantalla">
        <html:image src="/img/borrar.gif" />
        <bean:message key="boton.eliminar" />
</html:submit>

But,it doesn't work, it generates a button with value <input type=

I do it in this way because I need a button with a image inside, not a image
with submit function. Any idea about how i can do it?




-- 
View this message in context: 
http://www.nabble.com/How-to-put-an-image-into-a-%3Chtml%3Asubmit%3E-without-CSS-tf2419142.html#a6751934
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to