Updating cached CSS files in ASP.NET MVC 3 using dotLess

I had an issue with caching in an ASP.NET MVC3 web site that I was working on recently where users weren’t getting updates to CSS and image files. CSS is rather easy to resolve using the well-known query string hack, but doing the same for images referenced from within the CSS files is a bit trickier. Luckily the solution becomes trivial with a little help from dotLess.

Continue reading

John Galloway on HTML, CSS, and grumpy developers

I’ve just finished watching a presentation titled Learning To Love HTML and CSS (for grumpy developers) by John Galloway from the Herding Code gang, and I found it rather informative. I particularly liked his suggestion of avoiding the endless “one more pixel to the right” back and forth between developers and designers by getting an HTML mock-up going as soon as possible and using that to drive the discussions. I also kicked myself a few times for not finding about The Floatutorial sooner.