[Rails] link_to_image - Remove Border
Rodrigo Alvarez Fernández
papipo at gmail.com
Thu Jan 12 12:42:53 GMT 2006
On 1/12/06, Richard Back <rback at aegeuselec.com> wrote:
>
> Hi All,
>
> I am new to both Ruby and Rails, so please be patient with me. I am
> currently working on a view for a controller and I have used the
> following excerpt:
>
> <td><%= link_to_image "b_edit", :action => 'edit', :id => part_prefix
> %></td>
>
> The image is being displayed and the link is working. However, the
> formatting of image rendered produces and thick (1 or 2px) black box
> around the image. Is there a method of controlling this border aroung
> the image, I would prefer that it be transparent?
>
you can specify it in the img tag itself, or modify it with CSS (border:
0px)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060112/72521d88/attachment.html
More information about the Rails
mailing list