Columns
Place two or three blocks of content side by side in a responsive grid.
The columns shortcode arranges content in a horizontal grid. Separate each column with <---> on its own line. On narrow screens the columns stack vertically automatically.
Two columns
{{< columns >}}
**Option A**
Works well for small datasets with simple queries.
<--->
**Option B**
Better for high-volume writes and concurrent connections.
{{< /columns >}}Option A
Works well for small datasets with simple queries.
Option B
Better for high-volume writes and concurrent connections.
Three columns
{{< columns >}}
Install the CLI:
```shell
npm install -g mybundle
```
<--->
Configure your project:
```shell
mybundle init
```
<--->
Run the build:
```shell
mybundle build
```
{{< /columns >}}Install the CLI:
npm install -g mybundleConfigure your project:
mybundle initRun the build:
mybundle buildCustom ratio
Use ratio to control relative widths. The value maps directly to CSS fr units, so "2:1" gives the left column twice the space of the right.
{{< columns ratio="2:1" >}}
A wider left column for the main explanation or code sample.
<--->
A narrower right column for a note, tip, or screenshot.
{{< /columns >}}A wider left column for the main explanation or code sample.
A narrower right column for a note, tip, or screenshot.
Parameters
| Parameter | Default | Description |
|---|---|---|
ratio |
(none) | Column width ratio. Use colon-separated integers such as "2:1" or "1:2:1". |
Notes
- Any number of columns is supported, though two or three work best on most screen widths.
- Each column renders full Markdown including code blocks, lists, badges and other shortcodes.
- Columns collapse to a single vertical stack on screens narrower than 768 px.
Was this page helpful?
Thanks for your feedback!