I have an image tag as follows:
<%= image_tag @user.photo.url(:large) %>
How could I style a border color to one side of that image in CSS? What html would that produce?
by using "style" option:
<%= image_tag @user.photo.url(:large), :style => "border: 1px solid red" %>
for further info, please check the API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With