Mustafa KAHRAMAN

    İstanbul, Türkiye


    Grid System 2

    Published: November 16, 2018

    Grid System part 2


    Grid System 2

    • 1. Grid System 2 Grid System 2
    • 2. Alignment Alignment Use flexbox alignment utilities to vertically and horizontally align columns.
    • 3. Vertical Alignment Vertical Alignment
    • 4. Vertical Alignment Vertical Alignment
    • 5. Vertical Alignment Vertical Alignment
    • 6. Horizontal Alignment Horizontal Alignment
    • 7. Horizontal Alignment Horizontal Alignment
    • 8. No Gutters No Gutters The gutters between columns in our predefined grid classes can be removed with .no-gutters.
    • 9. Column Wrapping Column Wrapping If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
    • 10. Order Classes Order Classes Use .order- classes for controlling the visual order of your content. These classes are responsive, so you can set the order by breakpoint (e.g., .order- 1.order-md-2). Includes support for 1 through 12 across all five grid tiers.
    • 11. Order Classes Order Classes
    • 12. Offseting Columns Offseting Columns You can offset grid columns in two ways: our responsive .offset- grid classes and our margin utilities. Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable.
    • 13. Offset Classes Offset Classes Move columns to the right using .offset-md-* classes. These classes increase the left margin of a column by * columns. For example, .offset-md-4 moves .col-md- 4 over four columns.
    • 14. Margin Utilities Margin Utilities With the move to flexbox in v4, you can use margin utilities like .mr-auto to force sibling columns away from one another.
    • 15. Nesting Nesting To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
    • 16. Sass Mixins Sass Mixins When using Bootstrap’s source Sass files, you have the option of using Sass variables and mixins to create custom, semantic, and responsive page layouts.
    • 17. Variables Variables Variables and maps determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
    • 18. Mixins Mixins Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
    • 19. Customizing The Grid Customizing The Grid Using our built-in grid Sass variables and maps, it’s possible to completely customize the predefined grid classes. Change the number of tiers, the media query dimensions, and the container widths—then recompile.
    • 20. Columns And Gutters Columns And Gutters The number of grid columns can be modified via Sass variables. $grid- columns is used to generate the widths (in percent) of each individual column while $grid-gutter-width sets the width for the column gutters.
    • 21. Grid Tiers Grid Tiers Moving beyond the columns themselves, you may also customize the number of grid tiers. If you wanted just four grid tiers, you’d update the $grid-breakpoints and $container-max-widths to something like this
    • 22. Grid Katmanları Grid Katmanları When making any changes to the Sass variables or maps, you’ll need to save your changes and recompile. Doing so will output a brand new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in px (not rem, em, or %).
    • 23. Source Source https://getbootstrap.com/docs/4.1/layout/grid/