Lean XHTML and Precise CSS
Business Logs has a very interesting article up right now on writing lean CSS and XHTML.
I’ve tried many different ways of formatting my CSS over the years, and have always found myself coming back to ordering it in exactly the same way that the logical blocks are ordered in the XHTML. I definitely am a firm believer in keeping the XHTML as simple and lean as possible, always attempting to keep any CSS hacks to a minimum as well.
Of course I also have this horrible habit of losing the will to keep the lovely neat XHTML later on when I begin to add little things here and there. Soon I end up with a mess that just screams for a refactoring that usually ends up becoming a redesign. I guess the problem with having web development as a hobby rather than a job, is that when it comes to doing the right thing, or doing the fun thing, fun wins every time.
So what is your preferred method of ordering your CSS and XHTML?

RSS Feed








