Is the Bootstrap 3 grid better than the one from PureCSS? I'm building a thing where I use PureCSS only for the grid so I'm wondering if I should replace it with Bootstrap.
The Bootstrap 3 grid comes with a lot of what I like to call 'premade classes' - like .col-md-1 or .col-xs-1 . These are used to control the grid alignment at different sizes. Some people like them, some hate them. I personally dislike them because CSS classes should specify what an element is rather than what it will look like. e.x. if HN were to change from tables to CSS they would use .topbar { background: #ff6600…
Why the Bootstrap 3 Grid Works (2013)
51–60 of 91 posts
Re: Why the Bootstrap 3 Grid Works (2013)
#52Re: Why the Bootstrap 3 Grid Works (2013)
#53Re: Why the Bootstrap 3 Grid Works (2013)
#54Personally I don't like how it works. The padding / margin stuff just makes things too difficult to work with. /personal opinion
There are smaller grids, simpler grids, etc, but none are as robust and generalized as Bootstrap/Foundation. These have to be as close to "one size fits all" as they can.
Re: Why the Bootstrap 3 Grid Works (2013)
#55Bootstrap's grid really is nice. I really prefer Bootstraps grid over something like Bourboun's Neat grid system[0] where I have to pollute my CSS with include statements. I've also been looking into http://purecss.io/ since it's grid is similar but the CSS package is lighter. [0] - http://neat.bourbon.io/
> I really prefer Bootstraps grid over something like Bourboun's Neat grid system[0] where I have to pollute my CSS with include statements. What about creating silent classes for the column sizes you use and `@extend`ing those classes? %three-columns { @include span-columns(3); } .sidebar { @extend %three-columns; } .menu { @extend %three-columns; background-color: #facade; }
Personally, if I am working quickly, I like having what amounts to a grid api exposed to my html and use it a lot, but I agree that it is better if it doesn't have to be baked into the markup.
Re: Why the Bootstrap 3 Grid Works (2013)
#56I came up with this (in relation to Bootstrap) in 2011: http://csswizardry.com/2011/08/building-better-grid-systems/ This then became the basis for CSS Wizardry Grids: http://csswizardry.com/2013/02/introducing-csswizardry-grids...
Sorry, but the need to put " " everywhere is a dealbreaker for me. Example: ... ... What's the rationale for using inline-block instead of float?
Using `display: inline-block;` allows you to manipulate grids with text-level properties (e.g. `text-align: center;` to cause grid items to fill out from the center of the row), and also allows you to use `vertical-align: [top|middle|bottom];` to cause columns to start from different, well, alignments.
[1] https://github.com/csswizardry/csswizardry-grids/blob/master...
Re: Why the Bootstrap 3 Grid Works (2013)
#57Re: Why the Bootstrap 3 Grid Works (2013)
#58What did he use to create the wireframe images?
Re: Why the Bootstrap 3 Grid Works (2013)
#59What if you wanted the gutter between columns to be the same width as the padding to the edge of the screen? E.g. in the "Columns" screenshot, gutter = 30px, but screen edge padding = 15px. How would I achieve the same value for both? (I'm not a Bootstrap user.)
Re: Why the Bootstrap 3 Grid Works (2013)
#60I've been developing stuff based on Bootstrap lately, and it amazes me how this article appears on the first page of many of my related searches - something like a third I would say. I don't know if this is due to the article's excellent content or due to some good referencing.
It's legit ground-up SEO and content success, no magic. And, it helps that no one has ever tried to write Bootstrap articles and explanations like I did in my 3 articles.
BTW I am the author if that's not obvious =D