fugee_ohu
(fugee ohu)
1
don’t know why i can’t get this image to vertical-align to the top of the div, i’m not sure if i’m passing the class the right way
here’s my html
<%= link_to (image_tag(“logo.png”)), ‘/’ , {:class => “logo”} %>
here’s my css
.logo {
vertical-align: top;
height: 100%;
}
don’t know why i can’t get this image to vertical-align to the top of the div, i’m not sure if i’m passing the class the right way
here’s my html
<%= link_to (image_tag(“logo.png”)), ‘/’ , {:class => “logo”} %>
Actually, that’s your ERB, not the HTML
Did you mean to have redundant () around the image_tag(“logo.png”)?
Also, that class is on the resulting tag, not the img so that might make a difference if there’s other CSS that affects img or a elements.
-Rob