Using YUI grids: A dream come true

I've never been a hero when it comes to putting designs into a good HTML/CSS website. It's just not my strength, and also not something I overly enjoy. Especially the fact that anything I put together would break under Internet Explorer was a hell. But when Dave Dash pointed me towards the YUI grids feature, a new world opened for me.

I know the difference between various browsers, and I know that using certain approaches in your HTML or CSS usage will probably lead to things breaking in one browser or another, but sometimes, that certain approach is just the best solution there is. I had heard of CSS "frameworks" before but since HTML and CSS has never been the thing I like doing most, I never really looked at it, afraid that I had to learn all kinds of things. I was stupid.

Just as I like symfony for the fact that it makes development more structured and easy (obviously as long as you stay within the "boundaries" of how symfony works), CSS frameworks make the CSS work a lot more structured and easy (with the same limits). There are various out there, but as I was struggling with a problem I sent an IM to Dave Dash and he suggested I look at YUI grids , the CSS grid framework of the Yahoo! UI toolset. This was a good move, because within an evening I had rebuilt the complete markup and layout of the site I was working on at that point, but the markup looked much better and it looked exactly the same in several different browsers, including the most popular, Internet Explorer, Firefox and Opera. Oh, and did I mention that it took me several evenings of work just to get it to work correctly on Firefox? ;)

The work starts with the CSS Grid Builder , a tool that Yahoo! provides for getting your basic grids up and running. This will provide you with an empty HTML page (or with lorem ipsum strings if you so choose) that you can use as the starting point for your work. From there on, it's just decorating the HTML that is there with your own CSS for giving it the look you want. But all the rows, columns and menu bars that you want are there for you to use. Awesome! As the most work of getting a layout up and running is the positioning and general layout. After that it's just adding borders, graphics, and of course your php code for serving the content.

I've now done two sites with YUI grids, and I can't do without it anymore. This site and symfony-framework.nl are running happily on Yahoo!'s grids, and as soon as I start work on a new site, I'll first look at YUI for solving my CSS pain. 


Add comment

Comments

gravatar Ivo Jansch: Cool stuff! I wish it could also help with more demanding stuff such as floats, footers that should always be at the bottom etc; but this is already a great help for many layouts that usually are hard to do if you're not a CSS guru.
November 26, 2007
gravatar Ken: Started using YUI grid more than 6 months a go and never look back since.
January 8, 2008
gravatar Custom car decals for windows: The foundational YUI grids are providing lots of features in form of preset page widths, preset templates and much more. Such type of CSS Grid builder is good enough for the programmers. There must be some tutorials regarding the YUI.
June 23, 2011
gravatar writing services online: A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a good one.

November 15, 2011
gravatar compare motor trade insurance http://www.insurance4motortrade.co.uk/motor-trade-insurance-faq/: Really good stuff to read. I like the content of this article. Thanks for sharing this. It helped me a lot.
February 3, 2012
gravatar link building service: YUI grids sounds very good after reading the article and comments. going to have a look on it. Thanks.
February 4, 2012
gravatar Diamond Sofa: I love this post a lot. I'll definitely be back again. Hope that I will be able to study far more informative posts then. Is going to be sharing your wisdom with all of my associates!
February 7, 2012
gravatar ashley furniture: I wanted to thank you for this great read!! I undoubtedly having fun with each little bit of it I've you bookmarked to check out new stuff you post
February 7, 2012

Php5_zce_logo

Upcoming events

I will be speaking 17-02-2012: Techademy Trainingday February
I will be speaking 23-02-2012: Zend Webinar: Git for Subversion Users

Tags

1337 2008 2010 2011 4developers access modifiers accessibility AdaLovelaceDay09 advent agavi agile alfred amsterdam apache api apple article articles atk atkMetaNode audioscrobbler automation azure backwards compatibility barcelona barcodes bash bbc bbq beatstad belgium best practices bittorrent blogging blogs boards of canada book books bughuntday bundle caching cake cal evans calendar career cat cerf certificate cfp clear cms cologne common sense communities community components conference conferences contest continuous integration contribute contribution crisis css custom d-day datetime DbFinderPlugin decorator decorators deployment devdays development directoryindex docblox doctrine documentation download dpc dpc09 dpc10 dpc11 DPC2008 dreamhost drupal dv7 eclipse ed editors efficiency enterprise errors event events expertise ezcomponents facebook finland flickr fork framework frameworks freelance freeze frontend fun game games geoip germany getting real git github gnome-do google google calendar googletalk graceful degradation hack hackers hidden gem hiphop howto hp HR html http i386 ibuildings icann ide ideasofmarch idm imovie indy ingewikkeld integration international php conference internet interview ipad IPC ipc ipc08 ipc10 ipc11se iterm2 javascript jenkins jenkins-php job job openings jobeet john peel joomla joomladays kiva kubuntu launcher launchy left on the web libraries library lighttpd lime linktuesday linux live london loudblog m2ts mac magazines malware mambo marjolein mediterra meeting meme meta methodology micro-financing microframework microsoft migration movie music mysql namespace namespaces netbeans netherlands newsfire nllgg nos odmarco open source opinion ORM osx paradiso paris partnership pavilion pear pecl performance personal pfc10 pfc11 pfcongres pfcongrez pfz photo php php5.3 phpabstract phpazure phpBB phpbb phpbelgium phpbenelux phpbnl10 phpday phpdoc phpdocumentor phpgg phpitalia phpnw phpnw08 phpnw11 phpstorm phptek phptek09 phpuk2009 phpUnderControl phpunit php|architect php|tek podcast politics portability postcrossing presentation presentations private projects protected prototype PSR-0 public python qa qr codes re2c recruiting refactoring review rewrite ruby on rails san francisco schedule scifi script security sensio seven things sfdaycgn sflive2011 shell scripting silex simplexml slides smfony software sogeti solar sound speakers spl ssh standard standards star trek static steer strings stylesheets subversion symfony symfony live Symfony2 symfonycamp symfonyday symfonylive symfonyUnderControlPlugin talk talks techademy technology techportal tek09 telecommuting terratec terrorism testfest testing textmate textpattern the right tool timeout tips tld todo tomas tools training twig uncon unet usability usergroup validation vhost video vim vinyl virus warp webinar weblogging webservices wiki windows winphp women wordpress work workshop world world of warcraft wpi writing wunderlist xml xpath xsd yara year youtube zc11 ZCE zemanta zend zend framework zend server zend studio zendcon Zend_Form zite
© 2004 - 2012 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Delicious, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.4.0.1