%label{ :for => :title } Title %abbr{ :title => :English } EN Since both Title and the <abbr> tag are nested within the <label>, the text "Title" needs to come on its own line.
Since that's a little unwieldy, you might just want to write the HTML directly: %label{ :for => :title } Title <abbr title="English">EN</abbr> Best, Alex On Fri, Apr 2, 2010 at 1:05 PM, tenstates <imdata...@googlemail.com> wrote: > Hi all, > > Whats the best way to state the following: > > <label for="title">Title <abbr title="English">EN</abbr></label> > > I looked into the helpers and some of the tricks but haven't seen > anything that stands out. Any help on this is welcomed... > > Here's a sample from my template: > > %label{:for => "poster[title_en]"} Title (EN) > %input{:type => "text", :name => "poster[title_en]", :id => > "poster[title_en]"}/ > > Cheers > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.