You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sonam Belbase <So...@morganstanley.com> on 2003/11/24 20:38:18 UTC

links without underline/border

I'm trying to get the image be a link and not be underlined, but the
following still
renders an image with with a border.

<html:link href="javascript:setSaveUrl('save');"
style="{text-decoration: none;}"  >
     <img src="../../images/save_journal.gif"/>
</html:link>

If anyone can tell me how I can get the link image to display just on
it's own,
I'd appreciate it.

Thanks,
SB

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: links without underline/border

Posted by Jonathan Sampson <jj...@hotmail.com>.
Sonam, You do not want to kill a text-decoration simply because images do
not have text decorations.
Instead, on your image add this property

border="0" So your image tag should be:

<img src="../../images/save_journal.gif" border="0"/>

I hope this helps. You can delete the style tag all together.

----- Original Message -----
From: "Sonam Belbase" <So...@morganstanley.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, November 24, 2003 1:38 PM
Subject: links without underline/border


> I'm trying to get the image be a link and not be underlined, but the
> following still
> renders an image with with a border.
>
> <html:link href="javascript:setSaveUrl('save');"
> style="{text-decoration: none;}"  >
>      <img src="../../images/save_journal.gif"/>
> </html:link>
>
> If anyone can tell me how I can get the link image to display just on
> it's own,
> I'd appreciate it.
>
> Thanks,
> SB
>
> --
> NOTICE: If received in error, please destroy and notify sender.  Sender
> does not waive confidentiality or privilege, and use is prohibited.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: links without underline/border

Posted by Brice Ruth <br...@fiskars.com>.
Just an FYI - to remove the border, you wouldn't use the CSS for 
text-decoration, you'd use "border: none;" ... :)

Sonam Belbase wrote:

>I'm trying to get the image be a link and not be underlined, but the
>following still
>renders an image with with a border.
>
><html:link href="javascript:setSaveUrl('save');"
>style="{text-decoration: none;}"  >
>     <img src="../../images/save_journal.gif"/>
></html:link>
>
>If anyone can tell me how I can get the link image to display just on
>it's own,
>I'd appreciate it.
>
>Thanks,
>SB
>
>--
>NOTICE: If received in error, please destroy and notify sender.  Sender
>does not waive confidentiality or privilege, and use is prohibited.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>  
>

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org