> For the complete documentation index, see [llms.txt](https://docs.pages.revox.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pages.revox.io/grid.md).

# Grid

Bootstrap grid includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts

## Introduction

Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:

* You must start with `row`
* There are pre-define classes of columns starting from 1 to 12, example `col-md-1` to `col-md-12`
* Each of these value represent a percentage of the screen, 1 being the smallest and 12 being 100%
* You can create different grid pattern that finally forms 12

  eg :<br>

  ```markup
  <div class="row">
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
    <div class="col-md-1">.col-md-1</div>
  </div>
  <div class="row">
    <div class="col-md-8">.col-md-8</div>
    <div class="col-md-4">.col-md-4</div>
  </div>
  <div class="row">
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4">.col-md-4</div>
    <div class="col-md-4">.col-md-4</div>
  </div>
  <div class="row">
    <div class="col-md-6">.col-md-6</div>
    <div class="col-md-6">.col-md-6</div>
  </div>
  ```
* There different grids for different screen sizes, "col-md" md stands for medium screen, the following table explains<br>

  |                   | `EXTRA SMALL DEVICES PHONES (<768PX)`  | `SMALL DEVICESTABLETS (≥768PX)`                    | `MEDIUM DEVICESDESKTOPS (≥992PX)` | `LARGE DEVICESDESKTOPS (≥1200PX)` |
  | ----------------- | -------------------------------------- | -------------------------------------------------- | --------------------------------- | --------------------------------- |
  | `Grid behavior`   | `Horizontal at all times`              | `Collapsed to start, horizontal above breakpoints` |                                   |                                   |
  | `Container width` | `None (auto)`                          | `750px`                                            | `970px`                           | `1170px`                          |
  | `Class prefix`    | `.col-xs-`                             | `.col-sm-`                                         | `.col-md-`                        | `.col-lg-`                        |
  | `# of columns`    | `12`                                   |                                                    |                                   |                                   |
  | `Column width`    | `Auto`                                 | `~62px`                                            | `~81px`                           | `~97px`                           |
  | `Gutter width`    | `30px (15px on each side of a column)` |                                                    |                                   |                                   |
  | `Nestable`        | `Yes`                                  |                                                    |                                   |                                   |
  | `Offsets`         | `Yes`                                  |                                                    |                                   |                                   |
  | `Column ordering` | `Yes`                                  |                                                    |                                   |                                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pages.revox.io/grid.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
