Hacker News new | past | comments | ask | show | jobs | submit login

Love Base64 encoding... for anyone looking to optimize their CSS, check out Shaun Inman's CSS Cacheer... it can automatically inline images using that encoding: http://www.shauninman.com/archive/2008/05/30/check_out_css_c...

Sorry for slightly OT, but I really do love Base64...




Or if you're on Rails, there's a little-known helper as part of the asset pipeline that will do this for you:

    #logo { background: url(<%= asset_data_uri 'logo.png' %>) }




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: