Multiple Background Images in CSS


Image showing how the HTML and CSS in this blog post render

Nearly every software developer who works with front-end code has probably used the CSS property background-image. What some might not know is that background-image can take many images and set how those images are positioned. This could be particularly useful if you don’t have full control over the HTML that is being generated for whatever reason. You could also have multiple elements and use an nth-of-type selector to achieve the same effect. Click through for the code and a JSFiddle demo.

Read More

Quick Tip: Parsing a Config String in Ruby


Recently I came across the need to parse a bit of a config file, in this kind of format: “Category=filetype;…” Here is how one would do such a thing using split, inject and map.

Read More

Styling the Dreaded File Input


Styling a file input turns out to be quite difficult since CSS can’t reach into the control to get access to the elements. Head past the break to get the details.

Read More

Getting Started with Ember.js Part 5: Deleting a Car and Wrapup


In the last post we set up the new car view. In the final post let’s add the ability to delete a car and wrap up this series.

Read More