Show: All | News Items | Blog Posts
Sep 18, 2008 by Travis
If you've ever worked with CSS, you know what a pain it can be to get things looking right in all of the major browsers (Firefox, Safari and IE). IE is, of course, the major offender, causing extreme frustration at times. With the release of IE 7, the Microsoft dudes made a giant stride in standards compliance, but IE 6 is still hanging around in the fringe (I think t...
Piggybacking on link_to_unless
Aug 26, 2008 by Colin
We needed to add CSS to HTML links based on certain conditions (for instance, if you're already there). That's pretty easy to do by using link_to_unless, but the easy way isn't very DRY (Don't Repeat Yourself): <%= link_to_unless(@current_controller=='faq', "Frequently Asked Questions", faq_path){ link_to("Frequently Asked Questions", faq_path, :class =...
Jan 22, 2008 by Buck
Great sites when you're needing a design boost. CSS Beauty Best Web Gallery CSS Vault CSS Vault Unmatchedstyle.com CSS Remix CSS Elite
Need a background-image on a table row?
Nov 17, 2006 by Colin
Don't do it the intuitive way... <table> <tr style="background: url(/images/tr-background.gif) no-repeat 0 0;"> <td>Row 1</td> <td>Row 2</td> <td>Row 3</td> </tr> </table> ...because it doesn't work in IE6 or Safari, even if you set t...
Microsoft Drops It Like It's Hot
Oct 19, 2006 by Travis
Well, Microsoft released Internet Explorer 7 Final today. It took me about 10 minutes to install it (and all of the required dependencies). So far, I'm pretty impressed (despite the fact it locked up when I started it for the first time). They borrowed quite a few pages from Firefox with tabbed browsing, a built-in RSS reader, and a search box by the address bar. ...