Speed up your basic work for new sites
February 24th, 2011From time to time I create a new site (actually, that’s kind of what my job is all about..
). Such job is usually quite similar from one site to another. In order to simplify this process and – perhaps even more valuable – increase the production quality, I use frameworks and boiler templates. Currently my favourite setup is the HTML5 Boilertemplate together with grid960.
Let me introduce the two of them for you.
HTML5 Boilerplate:
This is what it sounds like. A basic proof-of-concept foundation for any website what so ever. No need to invent the wheel all over again. It’s important to notice though that it’s not a framework, but a ready made template setup which you then can (usually) scale down safely as well as add on to, to fit your needs.
That’s where the nice CSS Framework grid960 comes in!
The Grid960 is much more of a framework (as far as you can speak of frameworks in CSS). It gives you ready made CSS classes for a grid-splitted layout with a set width (960). Quoting their site;
“All modern monitors support at least 1024 × 768 pixel resolution. 960 is divisible by 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40, 48, 60, 64, 80, 96, 120, 160, 192, 240, 320 and 480. This makes it a highly flexible base number to work with.”
There are really nice plugins for Photoshop/AI/Fireworks/Dreamweaver that makes life even easier.
Applying the 960 grid to your boiler template is just a matter of adding the 960.css right after the boilerplates style.css link-tag (Ignore the reset and text css).
Read more about these two at
http://mashable.com/2010/09/02/html5-boilerplate-guide/ – Short intro
http://html5boilerplate.com/- Home of the boilerplate
http://960.gs/ – Home of the CSS grid
..and Some QA for boilertemplate @github
Next up will be chopping it upp all again to fit the CMS or whatever system it needs to fit into
(TYPO3 maybe?!)
Updates 24 feb 2011:
Here are some adjustments or additions when working with boilerplate and TYPO3:
config.doctype = <!doctype html>
config.renderCharset = utf-8
config.htmlTag_langKey = sv
config.htmlTag_setParams = class='no-js.js'
[browser = msie] && [version = <7]
config.htmlTag_setParams = class='no-js.js ie6'
[global]
[browser = msie] && [version = 7]
config.htmlTag_setParams = class='no-js.js ie7'
[global]
[browser = msie] && [version = 8]
config.htmlTag_setParams = class='no-js.js ie8'
[global]
[browser = msie] && [version = 9]
config.htmlTag_setParams = class='no-js.js ie9'
[global]





