> On 2017-Mar-2, at 19:00 , fugee ohu <[email protected]> wrote:
>
> 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 <a> tag, not the img so that might make a
difference if there's other CSS that affects img or a elements.
-Rob
>
> here's my css
>
> .logo {
> vertical-align: top;
> height: 100%;
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/99b5ec4a-2d03-48a2-86c3-32fc21b47782%40googlegroups.com
>
> <https://groups.google.com/d/msgid/rubyonrails-talk/99b5ec4a-2d03-48a2-86c3-32fc21b47782%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/ED85427E-39B2-45C4-89C7-8E7D4E74AD9A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.