How do I make an image_tag opaque with Rails?

Posted by codeman73 on Stack Overflow See other posts from Stack Overflow or by codeman73
Published on 2010-03-26T17:27:07Z Indexed on 2010/03/26 18:03 UTC
Read the original article Hit count: 367

Filed under:

I have tried the following:

<%= image_tag '...path_to_img', :filter => "alpha(opacity=50)" %>

But it doesn't work. At least it doesn't create errors, but it doesn't make it opaque, either. I'm rusty on my html/css, and I think from what I've researched so far that the filter/alpha/opacity I tried above is actually css instead of html.

© Stack Overflow or respective owner

Related posts about ruby-on-rails