<?php include('partials/app-html.php'); ?>

<head>
    <?php $pageTitle = "Responsive Grid"; include('partials/app-meta-title.php'); ?>

    <?php include('partials/app-head-css.php'); ?>
</head>

<body>

    <div class="app-wrap">

        <?php include('partials/app-header.php'); ?>

        <?php include('partials/app-sidebar.php'); ?>

        <main class="app-body">
            <div class="app-content">

                <div class="content-wrapper">

                    <?php $pageTitle = "Responsive Grid"; $pageSubTitle1 = "Design"; $pageSubTitle2 = "System Utilities"; $pageSubText = "Use our powerful mobile-first flexbox grid to build layouts of all shapes and sizes thanks to a twelve column system, six default responsive tiers, and dozens of predefined classes."; include('partials/app-pagetitle.php'); ?>

                    <div class="main-content">
                        <table class="table table-bordered table-striped table-transparant table-responsive rounded overflow-hidden mb-g">
                            <thead class="bg-warning-700">
                                <tr>
                                    <th class="border-top-0"></th>
                                    <th class="text-center">
                                        Extra small<br>
                                        <small class="fw-normal">&lt;576px</small>
                                    </th>
                                    <th class="text-center">
                                        Small<br>
                                        <small class="fw-normal">≥576px</small>
                                    </th>
                                    <th class="text-center">
                                        Medium<br>
                                        <small class="fw-normal">≥768px</small>
                                    </th>
                                    <th class="text-center">
                                        Large<br>
                                        <small class="fw-normal">≥992px</small>
                                    </th>
                                    <th class="text-center">
                                        Extra large<br>
                                        <small class="fw-normal">≥1200px</small>
                                    </th>
                                    <th class="text-center">
                                        XX large<br>
                                        <small class="fw-normal">≥1400px</small>
                                    </th>
                                    <th class="text-center">
                                        XXX large<br>
                                        <small class="fw-normal">≥1599px</small>
                                    </th>
                                </tr>
                            </thead>
                            <tbody class="bg-warning-100">
                                <tr>
                                    <th>Grid behavior</th>
                                    <td>Horizontal at all times</td>
                                    <td colspan="3">Collapsed to start</td>
                                    <td colspan="3">horizontal above breakpoints</td>
                                </tr>
                                <tr>
                                    <th>Max container</th>
                                    <td>None (auto)</td>
                                    <td>540px</td>
                                    <td>720px</td>
                                    <td>960px</td>
                                    <td>1140px</td>
                                    <td>1320px</td>
                                    <td>1500px</td>
                                </tr>
                                <tr>
                                    <th>Class prefix</th>
                                    <td><code>.col-</code></td>
                                    <td><code>.col-sm-</code></td>
                                    <td><code>.col-md-</code></td>
                                    <td><code>.col-lg-</code></td>
                                    <td><code>.col-xl-</code></td>
                                    <td><code>.col-xxl-</code></td>
                                    <td><code>.col-xxxl-</code></td>
                                </tr>
                                <tr>
                                    <th>Number of columns</th>
                                    <td colspan="7">12</td>
                                </tr>
                                <tr>
                                    <th>Max column width</th>
                                    <td class="text-muted">Auto</td>
                                    <td>60px</td>
                                    <td>78px</td>
                                    <td>95px</td>
                                    <td>95px</td>
                                    <td>95px</td>
                                    <td>95px</td>
                                </tr>
                                <tr>
                                    <th>Gutter width</th>
                                    <td colspan="7">1.5rem (0.75rem on left and right)</td>
                                </tr>
                                <tr>
                                    <th>Custom gutters</th>
                                    <td colspan="7">Yes</td>
                                </tr>
                                <tr>
                                    <th>Nestable</th>
                                    <td colspan="7">Yes</td>
                                </tr>
                                <tr>
                                    <th>Column ordering</th>
                                    <td colspan="7">Yes</td>
                                </tr>
                            </tbody>
                        </table>

                        <!-- example start -->
                        <div class="card p-g d-block">
                            <h5 class="mb-3 fw-600">
                                How it works
                                <small>
                                    Bootstrap's grid system uses a series of containers, rows, and columns to layout and align content. It's built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
                                </small>
                            </h5>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col-sm">
                                                One of three columns
                                            </div>
                                            <div class="col-sm">
                                                One of three columns
                                            </div>
                                            <div class="col-sm">
                                                One of three columns
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="mt-3 fw-700">
                                <span class="text-uppercase">Auto-layout columns</span>
                                <small>
                                    Utilize breakpoint-specific column classes for equal-width columns. Add any number of unit-less classes for each breakpoint you need and every column will be the same width.
                                </small>
                            </h6>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Equal-width </span>
                                <small>
                                    For example, here are two grid layouts that apply to every device and viewport, from <code>xs</code> to <code>xl</code>.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col">
                                                1 of 2
                                            </div>
                                            <div class="col">
                                                1 of 2
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col">
                                                1 of 3
                                            </div>
                                            <div class="col">
                                                1 of 3
                                            </div>
                                            <div class="col">
                                                1 of 3
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Setting one column width </span>
                                <small>
                                    Auto-layout for flexbox grid columns also means you can set the width of one column and the others will automatically resize around it. You may use predefined grid classes (as shown below), grid mixins, or inline widths. Note that the other columns will resize no matter the width of the center column.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col">
                                                1 of 3
                                            </div>
                                            <div class="col-6">
                                                2 of 3 (wider)
                                            </div>
                                            <div class="col">
                                                3 of 3
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col">
                                                1 of 3
                                            </div>
                                            <div class="col-5">
                                                2 of 3 (wider)
                                            </div>
                                            <div class="col">
                                                3 of 3
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Variable width content</span>
                                <small>
                                    Using the <code>col-{breakpoint}-auto</code> classes, columns can size itself based on the natural width of its content. This is super handy with single line content like inputs, numbers, etc. This, in conjunction with horizontal alignment classes, is very useful for centering layouts with uneven column sizes as viewport width changes.
                                </small>
                            </h6>

                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row justify-content-md-center">
                                            <div class="col col-lg-2">
                                                1 of 3
                                            </div>
                                            <div class="col-12 col-md-auto">
                                                Variable width content
                                            </div>
                                            <div class="col col-lg-2">
                                                3 of 3
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col">
                                                1 of 3
                                            </div>
                                            <div class="col-12 col-md-auto">
                                                Variable width content
                                            </div>
                                            <div class="col col-lg-2">
                                                3 of 3
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Equal-width multi-row</span>
                                <small>
                                    Create equal-width columns that span multiple rows by inserting a <code>.w-100</code> where you want the columns to break to a new line. Make the breaks responsive by mixing the <code>.w-100</code> with some responsive display utilities.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col">col</div>
                                            <div class="col">col</div>
                                            <div class="w-100"></div>
                                            <div class="col">col</div>
                                            <div class="col">col</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Responsive classes</span>
                                <small>
                                    Bootstrap's grid includes five tiers of predefined classes for building complex responsive layouts. Customize the size of your columns on extra small, small, medium, large, or extra large devices however you see fit.
                                </small>
                            </h6>
                            <h6 class="fw-700">
                                <span class="text-uppercase">All breakpoints</span>
                                <small>
                                    For grids that are the same from the smallest of devices to the largest, use the <code>.col</code> and <code>.col-*</code> classes. Specify a numbered class when you need a particularly sized column; otherwise, feel free to stick to <code>.col</code>.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col">col</div>
                                            <div class="col">col</div>
                                            <div class="col">col</div>
                                            <div class="col">col</div>
                                        </div>
                                        <div class="row">
                                            <div class="col-8">col-8</div>
                                            <div class="col-4">col-4</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Stacked to horizontal </span>
                                <small>
                                    Using a single set of <code>.col-sm-*</code> classes, you can create a basic grid system that starts out stacked on extra small devices before becoming horizontal on desktop (medium) devices.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col-sm-8">col-sm-8</div>
                                            <div class="col-sm-4">col-sm-4</div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm">col-sm</div>
                                            <div class="col-sm">col-sm</div>
                                            <div class="col-sm">col-sm</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Mix and match</span>
                                <small>
                                    Don't want your columns to simply stack in some grid tiers? Use a combination of different classes for each tier as needed. See the example below for a better idea of how it all works.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <!-- Stack the columns on mobile by making one full-width and the other half-width -->
                                        <div class="row">
                                            <div class="col col-md-8">.col .col-md-8</div>
                                            <div class="col-6 col-md-4">.col-6 .col-md-4</div>
                                        </div>
                                        <!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
                                        <div class="row">
                                            <div class="col-6 col-md-4">.col-6 .col-md-4</div>
                                            <div class="col-6 col-md-4">.col-6 .col-md-4</div>
                                            <div class="col-6 col-md-4">.col-6 .col-md-4</div>
                                        </div>
                                        <!-- Columns are always 50% wide, on mobile and desktop -->
                                        <div class="row">
                                            <div class="col-6">.col-6</div>
                                            <div class="col-6">.col-6</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Alignment</span>
                                <small>
                                    Use flexbox alignment utilities to vertically and horizontally align columns. Bootstrap 5 uses a flexbox-based grid system.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row bd-example-row-flex-cols">
                                    <div class="container container-demo">
                                        <div class="row align-items-start">
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                        </div>
                                        <div class="row align-items-center">
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                        </div>
                                        <div class="row align-items-end">
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                            <div class="col">
                                                One of three columns
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Horizontal alignment</span>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row justify-content-start">
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                        </div>
                                        <div class="row justify-content-center">
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                        </div>
                                        <div class="row justify-content-end">
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                        </div>
                                        <div class="row justify-content-around">
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                        </div>
                                        <div class="row justify-content-between">
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                            <div class="col-4">
                                                One of two columns
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Gutters</span>
                                <small>
                                    Gutters can be responsively adjusted using gutter modifier classes. For example: <code>.g-0</code> removes gutters, <code>.g-4</code> sets gutters to 1.5rem, and <code>.g-*-*</code> classes can be used for responsive gutter widths.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row g-0">
                                            <div class="col-6">.col-6 .g-0</div>
                                            <div class="col-6">.col-6 .g-0</div>
                                        </div>
                                        <div class="row g-4">
                                            <div class="col-6">.col-6 .g-4</div>
                                            <div class="col-6">.col-6 .g-4</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Column ordering with order classes</span>
                                <small>
                                    Use <code>.order-</code> classes for controlling the visual order of your content. These classes are responsive, so you can set the order by breakpoint (e.g., <code>.order-1.order-md-2</code>).
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col order-last">
                                                First, but last
                                            </div>
                                            <div class="col">
                                                Second, but unordered
                                            </div>
                                            <div class="col order-first">
                                                Third, but first
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Offset classes</span>
                                <small>
                                    Move columns to the right using <code>.offset-md-*</code> classes. These classes increase the left margin of a column by * columns. For example, <code>.offset-md-4</code> moves <code>.col-md-4</code> over four columns.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col-md-4">.col-md-4</div>
                                            <div class="col-md-4 offset-md-4">.col-md-4 .offset-md-4</div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
                                            <div class="col-md-3 offset-md-3">.col-md-3 .offset-md-3</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Push and pull</span>
                                <small>
                                    Easily change the order of our built-in grid columns with <code>.push-md-*</code> and <code>.pull-md-*</code> modifier classes.
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col-md-9 push-md-3">.col-md-9 .push-md-3</div>
                                            <div class="col-md-3 pull-md-9">.col-md-3 .pull-md-9</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <hr>
                            <h6 class="fw-700">
                                <span class="text-uppercase">Nesting</span>
                                <small>
                                    To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-sm-*</code> columns within an existing <code>.col-sm-*</code> 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).
                                </small>
                            </h6>
                            <div class="bd-example">
                                <div class="bd-example-row">
                                    <div class="container container-demo">
                                        <div class="row">
                                            <div class="col-sm-9">
                                                Level 1: .col-sm-9
                                                <div class="row">
                                                    <div class="col-8 col-sm-6">
                                                        Level 2: .col-8 .col-sm-6
                                                    </div>
                                                    <div class="col-4 col-sm-6">
                                                        Level 2: .col-4 .col-sm-6
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>


                </div>

            </div>

            <?php include('partials/app-footer.php'); ?>

        </main>

        <?php include('partials/app-drawer.php'); ?>

        <?php include('partials/app-settings.php'); ?>

    </div>

    <?php include('partials/app-scripts.php'); ?>

</body>

</html>