DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Code Rails, Drink Beer, Be Happy

08.30.2007
| 2533 views |
  • submit to reddit
        This was an interesting use of CSS.
Snipped from: http://rubyonrails.com.au/

  <div id="beer">
    Code Rails,<br/>
    Drink Beer,<br/>
    Be Happy.<br/>
  </div>

And the CSS...
#beer {main.css (line 124)
background:transparent url(../images/beer.png) no-repeat scroll left top;
color:#666666;
font-family:"Times New Roman",serif;
font-size:175%;
margin-top:36px;
padding:6px 0pt 12px 60px;
}