<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: design code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 02:37:37 GMT</pubDate>
    <description>DZone Snippets: design code</description>
    <item>
      <title>abbr formatting</title>
      <link>http://snippets.dzone.com/posts/show/5227</link>
      <description>haml (easily transformed to css) snippet to format abbrs in a proper manner - you can still type them in ALL CAPS, but they will be displayed in Titlecase and small-caps. If you're using this, you're probably also using a custom face via @font-face, so you might want to explicitly declare the small-caps and lowercase variants of the typeface - the browser often fucks up auto-small-caps.&lt;br /&gt;&lt;br /&gt;also, not tested in internet explorer. nothing I write is.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;abbr&lt;br /&gt;  :display inline-block&lt;br /&gt;  :text-transform lowercase&lt;br /&gt;  :font-variant small-caps&lt;br /&gt;  &lt;br /&gt;  &amp;:first-letter&lt;br /&gt;    :text-transform uppercase&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 13 Mar 2008 21:13:51 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5227</guid>
      <author>elliottcable (elliott cable)</author>
    </item>
    <item>
      <title>PNG-24 Alpha support for IE</title>
      <link>http://snippets.dzone.com/posts/show/1836</link>
      <description>What so much webdesigners dream about!&lt;br /&gt;Get alpha channel on web, that's possible with PNG-24 images and this trick.&lt;br /&gt;BE CAREFUL: that seem to work only for 10 images per page.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  # Display PNG-24 images with alpha channel on IE&lt;br /&gt;  # BE CAREFUL: with this trick, only 10 PNGs seems to be supported by IE&lt;br /&gt;  # Don't forget to set the size of your div&lt;br /&gt;  def transpng(id, png)&lt;br /&gt;    '&lt;style type="text/css"&gt;&lt;br /&gt;      &lt;!--&lt;br /&gt;        ' + id + ' {&lt;br /&gt;          background-image: url(' + png + ');&lt;br /&gt;        }&lt;br /&gt;      --&gt;&lt;br /&gt;    &lt;/style&gt;&lt;br /&gt;    &lt;!--[if IE]&gt;&lt;br /&gt;    &lt;style&gt;&lt;br /&gt;      ' + id + ' {&lt;br /&gt;        background-image: none;&lt;br /&gt;        filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + png + ', sizingMethod=\'scale\');&lt;br /&gt;      }&lt;br /&gt;    &lt;/style&gt;&lt;br /&gt;    &lt;![endif]--&gt;'&lt;br /&gt;  end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 04 Apr 2006 02:03:26 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1836</guid>
      <author>Seb (S&#233;bastien Grosjean)</author>
    </item>
    <item>
      <title>tip: Database, For  'Event occurred' use bool from date.</title>
      <link>http://snippets.dzone.com/posts/show/1771</link>
      <description>From: http://jamis.jamisbuck.org/articles/2005/12/14/two-tips-for-working-with-databases-in-rails&lt;br /&gt;First tip: I&#8217;ve found recently that if I have a boolean field in the database that is being used to mark whether some event occurred (referrals.pending, or feeds.subscribed) it is often more effective to make the field a datetime and record the moment that the event occurred. Then, a NULL can be used to indicate that the event has not yet occurred. Thus, you have referrals.applied_at with a method on Referral like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  def pending?&lt;br /&gt;    applied_at.nil?&lt;br /&gt;  end&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This gives you the capability down the road to not only report whether the event occurred, but how frequently over various periods of time.</description>
      <pubDate>Sun, 26 Mar 2006 02:51:49 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1771</guid>
      <author>MattScilipoti (Matt Scilipoti)</author>
    </item>
    <item>
      <title>Nice serif font set for CSS</title>
      <link>http://snippets.dzone.com/posts/show/266</link>
      <description>&lt;code&gt;font-family: "Hoefler Text", Baskerville, "Big Caslon", "Adobe Garamond Pro", Georgia, Palatino, "Times New Roman", serif;&lt;/code&gt;</description>
      <pubDate>Tue, 10 May 2005 08:53:40 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/266</guid>
      <author>peter (Peter Cooperx)</author>
    </item>
  </channel>
</rss>
