Archive for December, 2008

Ruby snippet: Return a different string if empty or if replacing

Wednesday, December 24th, 2008
In my latest Rails project I needed a quick way to return a string if that string happened to be blank, and also a way to return a different string if the existing string is set. Here's the solution I came up with which I placed in extras.rb in my ...

Image-based menu with CSS color property

Wednesday, December 10th, 2008
I've been covering the image-based CSS menu now quite a bit, this being my third article of the sort. Menus are very important, and there's so much that can be done with them that I figure I'd write an article on different variations to what is essentially the same menu. ...

Adding a drop down to our image-based CSS menu

Monday, December 8th, 2008
Drop down menus are all the rage! CSS drop down menus have been done before, so rather than reinvent the wheel, let's use a tried-and-true CSS drop down menu method by Patrick Griffiths and Dan Webb aptly named the "Suckerfish Dropdown." You can read more about it at A List Apart, ...