Skip to content

Instantly share code, notes, and snippets.

<dl class="separator">
<dt>Definition List</dt>
<dd>A definition list is a list of terms and corresponding definitions. To create a definition list use the &lt;dl&gt; element in conjunction with &lt;dt&gt; to define the definition term and &lt;dd&gt; to define the definition description.</dd>
<dt>Definition Term</dt>
<dd>This is a definition description.</dd>
<dt>Definition Term</dt>
<dd>This is a definition description.</dd>
<dd>This is another definition description.</dd>
</dl>
<span <% if formatted_price_for(@daily_deal.price_to_display).length == 6 %>
style="font-size: 75%">
<% elsif formatted_price_for(@daily_deal.price_to_display).length == 7 %>
style="font-size: 65%">
<% elsif formatted_price_for(@daily_deal.price_to_display).length > 7 %>
style="font-size: 55%">
<% else %>
style="font-size: 100%">
<% end %>
<%= formatted_price_for(@daily_deal.price_to_display) %>