I'm the author of this blog post. If you want to talk more or ask specific questions on problems you have or how to do certain things with the Less or grid, post it here or on the disqus comments on the article and I'll answer every question I get.
Is it a big undertake to read all of bootstrap to understand how it does everything? should I read the css or less files? having only finished reading a book about HTML and CSS.
Why the Bootstrap 3 Grid Works (2013)
71–80 of 91 posts
Re: Why the Bootstrap 3 Grid Works (2013)
#72Earlier quoted context omitted.
Isn't he saying that you should always use a container?
Any content should always be in a container. The 15px margin keeps the content from laying against the side of the browser. If you want to do a fullscreen background or image or something then you don't need the container.
If you need multiple bleeds on a page, use multiple containers. Just don't nest containers inside of containers.
Re: Why the Bootstrap 3 Grid Works (2013)
#73I'm the author of this blog post. If you want to talk more or ask specific questions on problems you have or how to do certain things with the Less or grid, post it here or on the disqus comments on the article and I'll answer every question I get.
Is it a big undertake to read all of bootstrap to understand how it does everything? should I read the css or less files? having only finished reading a book about HTML and CSS.
This approach has helped me a lot in understanding how many of Bootstrap components work, and why they are structured the way they are :)
Re: Why the Bootstrap 3 Grid Works (2013)
#74What 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.)
This is a tough one. I will have to think about it, I'll try and respond here later.
The -15px margin on the rows and 15px margin on the columns would still do their job, only that the rows would be 15 pixels smaller.
Re: Why the Bootstrap 3 Grid Works (2013)
#75Earlier quoted context omitted.
Any content should always be in a container. The 15px margin keeps the content from laying against the side of the browser. If you want to do a fullscreen background or image or something then you don't need the container.
Exactly this. If you want to create a bleed, don't use a container, but if you want content inside that bleeding element, put a container inside of it, which will keep content from bleeding. If you need multiple bleeds on a page, use multiple containers. Just don't nest containers inside of containers.
For images that you want to touch the side or whatever, there is some of that fiddling with the margins on the interior elements, yeah.
Re: Why the Bootstrap 3 Grid Works (2013)
#76Re: Why the Bootstrap 3 Grid Works (2013)
#77The biggest problem I've had with bootstrap is that it is so large. There is so much overhead. My company is working on a project and it would have taken a ton of work to port to bootstrap. For lightweight grids that support dynamically sized containers, masonry was great. But there a ton of issues with keeping the content centered when the container changes size. We dealt with this by using inline-blocked elements w…
Min is an extremely small CSS framework (995 bytes) that has compatibility with Bootstrap but unlike Bootstrap isn't prescriptive in how you do things. It's easy to port sites to Min, and when you do the loading times will shock you. https://github.com/owenversteeg/min (Disclosure: I'm the author)
Re: Why the Bootstrap 3 Grid Works (2013)
#78Its worth pointing out that this all works because of the rule: * { box-sizing: border-box; } This rule enables you to set a % width of a column and specify a padding in pixels without pushing the width of the columns beyond the 100%. (I spent ages trying to replicate the bootstrap grid system and just couldn't get it to work until I discovered this rule!)
Re: Why the Bootstrap 3 Grid Works (2013)
#79Earlier quoted context omitted.
If you like Pure you might like my framework Min. It's way smaller than Pure and v2 (released in a couple of days from now) will have full compatibility with Bootstrap. https://github.com/owenversteeg/min
I like Min but the 10-column grid seems like a poor choice vs 12-col, IMO. What was the rationale behind that?
They have since shifted to "make a CSS framework that can actually be used by other people, while still staying under 995 bytes". I also got another person (Scott O'Hara, https://github.com/scottaohara) to contribute; he made several useful contributions and also made size optimizations. As a result, Min 2.0 will be 995 bytes and also include a (clearly superior) 12-column grid. It will also include many other useful features, like a better responsive navbar and better icons, include all of Bootstrap's features, and it will still support IE5.5+.
Re: Why the Bootstrap 3 Grid Works (2013)
#80Best description of the messy state of HTML: hacking a flowing document markup language to implement GUI. Why couldn't we just get all the nice XAML/WPF containers in HTML5? Instead we get one more way of delivering streaming video. Most developers have to deal with layouts - let's focus on fixing that instead.
Kids these days, no idea how rough we had it back when IE had 90% marketshare and didn't update for decades on end. You think HTML5 is just about streaming video? The standards are out there and they are improving rapidly, look into flexbox.