Re:Twitter's Bootstrap 2 ready for testing and feedback
by tptacek on Tuesday January 24, 2012 @06:01PM
(#3507402)
In Haml:
Or, to do 3-col:
Nothing in the partial needs to especially care about the grid (as long as its simple) --- but if it wanted to, it could nest columns.
[ Parent
| on HN ]
Re:Twitter's Bootstrap 2 ready for testing and feedback
by aaronbrethorst on Tuesday January 24, 2012 @07:34PM
(#3507732)
or better yet, you have semantically named elements and assign them column values in your .less file:
#sidebar {
.makeColumn(4);
}
#main_pane {
.makeColumn(8);
}
#sidebar
= render :partial => 'common/sidebar'
#main_pane
= yield