Ruby on Rails with CSS Frameworks
Monday, June 18th, 2007I’m no designer. This webpage is perhaps proof of that. However, taking that into account, I have to create webpages with at least some design to them. Notably business apps and admin control areas.
Now in this day and age we all should be using CSS to control layout and typeface definitions, none of that inline stuff too. This however can be a rather tedious and painful business for somebody such as myself.
The problem with this perhaps is that the only help rails give you in the term of CSS is a helper method that creates the html head CSS import and a standard and slightly ugly scaffold.css document. So my overriding issue is that whilst rolling around in Ruby joy, my CSS is gets messy. It ends up in an near unmaintainable heap, laden with IE hacks and unorganised in nature. Grr horrid.
What I really need to do is make some code that I can reuse over and over again.
A CSS FRAMEWORK if you will, which can be extended and reused for each project.
So I’m exploring this right now. There are a few lying around the net, including one by the behemoth that is Yahoo!
Content with style CSS framework - http://www.contentwithstyle.co.uk/Articles/17/
Yahoo! CSS Grids - http://developer.yahoo.com/yui/grids/
Now if Rails could help with its scaffold function, producing something of more than scaffold.css, that would be swell.