{"id":1864,"date":"2017-06-27T05:01:29","date_gmt":"2017-06-27T05:01:29","guid":{"rendered":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/?page_id=1864"},"modified":"2017-06-29T11:10:35","modified_gmt":"2017-06-29T11:10:35","slug":"grids","status":"publish","type":"page","link":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/","title":{"rendered":"Grids"},"content":{"rendered":"<style>.sample-content h3{margin-top: 2rem;}.sample-content .row{margin-bottom: 1rem;}.sample-content .row .row{margin-top: 1rem; margin-bottom: 0;}.sample-content [class*=\"col-\"]{padding-top: 1rem; padding-bottom: 1rem; background-color: rgba(86,61,124,.15); border: 1px solid rgba(86,61,124,.2);}.sample-content hr{margin-top: 2rem; margin-bottom: 2rem;}<\/style>\n<div class=\"container sample-content\">\n<h1>Bootstrap grid examples<\/h1>\n<p class=\"lead\">Basic grid layouts to get you familiar with building within the Bootstrap grid system.<\/p>\n<h3>Five grid tiers<\/h3>\n<p>There are five tiers to the Bootstrap grid system, one for each range of devices we support. Each tier starts at a minimum viewport size and automatically applies to the larger devices unless overridden.<\/p>\n<div class=\"row\">\n<div class=\"col-4\">.col-4<\/div>\n<div class=\"col-4\">.col-4<\/div>\n<div class=\"col-4\">.col-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-4\">.col-sm-4<\/div>\n<div class=\"col-sm-4\">.col-sm-4<\/div>\n<div class=\"col-sm-4\">.col-sm-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-md-4\">.col-md-4<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-4\">.col-lg-4<\/div>\n<div class=\"col-lg-4\">.col-lg-4<\/div>\n<div class=\"col-lg-4\">.col-lg-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-xl-4\">.col-xl-4<\/div>\n<div class=\"col-xl-4\">.col-xl-4<\/div>\n<div class=\"col-xl-4\">.col-xl-4<\/div>\n<\/div>\n<h3>Three equal columns<\/h3>\n<p>Get three equal-width columns <strong>starting at desktops and scaling to large desktops<\/strong>. On mobile devices, tablets and below, the columns will automatically stack.<\/p>\n<div class=\"row\">\n<div class=\"col-md-4\">.col-md-4<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<\/div>\n<h3>Three unequal columns<\/h3>\n<p>Get three columns <strong>starting at desktops and scaling to large desktops<\/strong> of various widths. Remember, grid columns should add up to twelve for a single horizontal block. More than that, and columns start stacking no matter the viewport.<\/p>\n<div class=\"row\">\n<div class=\"col-md-3\">.col-md-3<\/div>\n<div class=\"col-md-6\">.col-md-6<\/div>\n<div class=\"col-md-3\">.col-md-3<\/div>\n<\/div>\n<h3>Two columns<\/h3>\n<p>Get two columns <strong>starting at desktops and scaling to large desktops<\/strong>.<\/p>\n<div class=\"row\">\n<div class=\"col-md-8\">.col-md-8<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<\/div>\n<h3>Full width, single column<\/h3>\n<p class=\"text-warning\">No grid classes are necessary for full-width elements.<\/p>\n<hr \/>\n<h3>Two columns with two nested columns<\/h3>\n<p>Per the documentation, nesting is easy\u2014just put a row of columns within an existing column. This gives you two columns <strong>starting at desktops and scaling to large desktops<\/strong>, with another two (equal widths) within the larger column.<\/p>\n<p>At mobile device sizes, tablets and down, these columns and their nested columns will stack.<\/p>\n<div class=\"row\">\n<div class=\"col-md-8\">\n<p>.col-md-8<\/p>\n<div class=\"row\">\n<div class=\"col-md-6\">.col-md-6<\/div>\n<div class=\"col-md-6\">.col-md-6<\/div>\n<\/div>\n<\/div>\n<div class=\"col-md-4\">.col-md-4<\/div>\n<\/div>\n<hr \/>\n<h3>Mixed: mobile and desktop<\/h3>\n<p>The Bootstrap v4 grid system has five tiers of classes: xs (extra small), sm (small), md (medium), lg (large), and xl (extra large). You can use nearly any combination of these classes to create more dynamic and flexible layouts.<\/p>\n<p>Each tier of classes scales up, meaning if you plan on setting the same widths for xs and sm, you only need to specify xs.<\/p>\n<div class=\"row\">\n<div class=\"col-12 col-md-8\">.col-12 .col-md-8<\/div>\n<div class=\"col-6 col-md-4\">.col-6 .col-md-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-6 col-md-4\">.col-6 .col-md-4<\/div>\n<div class=\"col-6 col-md-4\">.col-6 .col-md-4<\/div>\n<div class=\"col-6 col-md-4\">.col-6 .col-md-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-6\">.col-6<\/div>\n<div class=\"col-6\">.col-6<\/div>\n<\/div>\n<hr \/>\n<h3>Mixed: mobile, tablet, and desktop<\/h3>\n<p>&nbsp;<\/p>\n<div class=\"row\">\n<div class=\"col-12 col-sm-6 col-lg-8\">.col-12 .col-sm-6 .col-lg-8<\/div>\n<div class=\"col-6 col-lg-4\">.col-6 .col-lg-4<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-6 col-sm-4\">.col-6 .col-sm-4<\/div>\n<div class=\"col-6 col-sm-4\">.col-6 .col-sm-4<\/div>\n<div class=\"col-6 col-sm-4\">.col-6 .col-sm-4<\/div>\n<\/div>\n<hr \/>\n<h3>Column clearing<\/h3>\n<p><a href=\"..\/..\/layout\/grid\/#example-responsive-column-resets\">Clear floats<\/a> at specific breakpoints to prevent awkward wrapping with uneven content.<\/p>\n<div class=\"row\">\n<div class=\"col-6 col-sm-3\">.col-6 .col-sm-3<br \/>\nResize your viewport or check it out on your phone for an example.<\/div>\n<div class=\"col-6 col-sm-3\">.col-6 .col-sm-3<\/div>\n<div class=\"clearfix hidden-sm-up\"><\/div>\n<div class=\"col-6 col-sm-3\">.col-6 .col-sm-3<\/div>\n<div class=\"col-6 col-sm-3\">.col-6 .col-sm-3<\/div>\n<\/div>\n<hr \/>\n<h3>Offset, push, and pull resets<\/h3>\n<p>Reset offsets, pushes, and pulls at specific breakpoints.<\/p>\n<div class=\"row\">\n<div class=\"col-sm-5 col-md-6\">.col-sm-5 .col-md-6<\/div>\n<div class=\"col-sm-5 offset-sm-2 col-md-6 offset-md-0\">.col-sm-5 .offset-sm-2 .col-md-6 .offset-md-0<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-sm-6 col-md-5 col-lg-6\">.col-sm-6 .col-md-5 .col-lg-6<\/div>\n<div class=\"col-sm-6 col-md-5 offset-md-2 col-lg-6 offset-lg-0\">.col-sm-6 .col-md-5 .offset-md-2 .col-lg-6 .offset-lg-0<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bootstrap grid examples Basic grid layouts to get you familiar with building within the Bootstrap grid system. Five grid tiers There are five tiers to the Bootstrap grid system, one for each range of devices we support. Each tier starts at a minimum viewport size and automatically applies to the larger devices unless overridden. .col-4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"fullwidth.php","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.0.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Grids - WordPress Bootstrap Theme<\/title>\n<link rel=\"canonical\" href=\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Grids - WordPress Bootstrap Theme\" \/>\n<meta property=\"og:description\" content=\"Bootstrap grid examples Basic grid layouts to get you familiar with building within the Bootstrap grid system. Five grid tiers There are five tiers to the Bootstrap grid system, one for each range of devices we support. Each tier starts at a minimum viewport size and automatically applies to the larger devices unless overridden. .col-4 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\" \/>\n<meta property=\"og:site_name\" content=\"WordPress Bootstrap Theme\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-29T11:10:35+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/#website\",\"url\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/\",\"name\":\"WordPress Bootstrap Theme\",\"description\":\"The Bootstrap WordPress theme that is lightweight, uncluttered and very easy to customize. 100% Free.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/#webpage\",\"url\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\",\"name\":\"Grids - WordPress Bootstrap Theme\",\"isPartOf\":{\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/#website\"},\"datePublished\":\"2017-06-27T05:01:29+00:00\",\"dateModified\":\"2017-06-29T11:10:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/\",\"url\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\",\"url\":\"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/grids\/\",\"name\":\"Grids\"}}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/pages\/1864"}],"collection":[{"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/comments?post=1864"}],"version-history":[{"count":6,"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/pages\/1864\/revisions"}],"predecessor-version":[{"id":2543,"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/pages\/1864\/revisions\/2543"}],"wp:attachment":[{"href":"https:\/\/afterimagedesigns.com\/wp-bootstrap-starter\/wp-json\/wp\/v2\/media?parent=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}