Bootstrap Row and Column

Last updated

Row and Column give you the real Bootstrap 12-column grid inside the block editor. Set a width for each column at every breakpoint, and the layout behaves on a phone exactly as it would in a hand-coded Bootstrap site.

Demonstration

.col-12 .col-md-3 .col-lg-6

.col-4 .col-md-3 .col-lg-6

.col-4 .col-md-3 .col-lg-6

.col-4 .col-md-3 .col-lg-6

<div class="container-fluid">
    <div class="acf-innerblocks-container">
        <div class="row gx-0 gy-0 align-items-center border wp-custom-css-8afbfe24 has-custom-css">
            <div class="acf-innerblocks-container">
                <div class="col-12 col-md-3 col-lg-6 border-end pt-1">
                    <div class="acf-innerblocks-container">
                        <p class="has-text-align-center wp-block-paragraph">.col-12 .col-md-3 .col-lg-6</p>
                    </div>
                </div>
                <div class="col-4 col-md-3 col-lg-6 border-end pt-1">
                    <div class="acf-innerblocks-container">
                        <p class="has-text-align-center wp-block-paragraph">.col-4 .col-md-3 .col-lg-6 </p>
                    </div>
                </div>
                <div class="col-4 col-md-3 col-lg-6 border-end pt-1">
                    <div class="acf-innerblocks-container">
                        <p class="has-text-align-center wp-block-paragraph">.col-4 .col-md-3 .col-lg-6</p>
                    </div>
                </div>
                <div class="col-4 col-md-3 col-lg-6 pt-1">
                    <div class="acf-innerblocks-container">
                        <p class="has-text-align-center wp-block-paragraph">.col-4 .col-md-3 .col-lg-6</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

Screenshots

Bootstrap Row Settings

General

Horizontal Gutter: Leave empty to use Bootstrap's default horizontal gutter.

Vertical Gutter: Leave empty for no explicit vertical gutter class.

Vertical Alignment: Align columns along the row's vertical axis.

Horizontal Alignment: Distribute columns along the row's horizontal axis.

Enable Advanced Classes: Replace the gutter and alignment selectors with hand-entered Bootstrap classes. The required row class remains automatic.

Advanced Row Classes: Space-separated modifiers and utilities; do not include row. For example: gx-4 gy-3 align-items-center row-cols-md-3.

Bootstrap Column

Base Width: Leave empty to stack at full width until a breakpoint width is set.

Small Width (sm): Applies at 576px and above. Leave empty to inherit Base Width.

Medium Width (md): Applies at 768px and above. Leave empty to inherit the preceding width.

Large Width (lg): Applies at 992px and above. Leave empty to inherit the preceding width.

Extra Large Width (xl): Applies at 1200px and above. Leave empty to inherit the preceding width.

XXL Width (xxl): Applies at 1400px and above. Leave empty to inherit the preceding width.

Enable Advanced Classes: Replace the responsive width selectors with hand-entered Bootstrap classes.

Additional Column Classes: Space-separated classes. Include at least one col-* class, for example: col-12 col-md-6 offset-lg-1.