Your code should look like this:

#person-template{:style => "display: none"}
    .person
        %p.name
            %b Name:
        %p.nickname
            %b Nickname:
        %p.occupation
            %b Occupation:
        %p.rank
            %b Rank:


On Feb 2, 8:42 pm, explainer <keburg...@gmail.com> wrote:
> I have the following html snippet I wish to translate to haml:
>
> <div id="person-template" style="display: none;">
>   <div class="person">
>     <p class="name"><b>Name:</b> </p>
>     <p class="nickname"><b>Nickname:</b> </p>
>     <p class="occupation"><b>Occupation:</b> </p>
>     <p class="rank"><b>Rank:</b> </p>
>   </div>
> </div>
>
> I have not been able to figure out how to code the '
> style="display:none;" ', I keep getting the error listed in the
> subject line above.  What am I missing?

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@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.

Reply via email to