I'm diving into web development and I'm playing with the Blueprint CSS framework, which includes a grid system, and I have a few questions.
Thanks so much for your wisdom!
Gutters or alleys are spacing between content tracks. These can be created in CSS Grid Layout using the column-gap , row-gap , or gap properties.
The gap CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for row-gap and column-gap .
CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Like tables, grid layout enables an author to align elements into columns and rows.
Gutters only apply to the Bootstrap grid, while margins can be used anywhere. Gutters specifically adjust the margins & padding on the Bootstrap grid row and col which effects the spacing between columns inside the row. Other the other hand, margins could be used on any element.
The motivation behind a CSS Grid system is to completely automate layout. Gutters are usually desirable because white space between columns makes for better legibility so it makes sense to include them as part of the automation.
A Generator's raison d'être is to relieve you of the slightly tedious calculations necessary to implement them but without the gutters both the math and the css isn't at all complicated.
It should be very straight forward to do a no-gutter grid without a generator. e.g.
( column width X nº of columns ) + left margin + right margin = content width .span-1 {width:100px} .span-2 {width:200px} .span-3 {width:300px} .span-4 {width:400px} etc...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With