Home > Web Front-end > CSS Tutorial > How to Create a Bootstrap Column Spanning Multiple Rows?

How to Create a Bootstrap Column Spanning Multiple Rows?

Susan Sarandon
Release: 2024-12-14 15:10:12
Original
557 people have browsed it

How to Create a Bootstrap Column Spanning Multiple Rows?

Creating a Bootstrap Column that Spans Multiple Rows

You're aiming to construct a Bootstrap grid with a specific layout:

Target grid layout

The challenge lies in creating box 1, which spans two rows.

For Bootstrap 3:

To achieve this in Bootstrap 3, utilize the following HTML structure:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>

<div class="row">
    <div class="col-md-4">
        <div class="well">1
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
        </div>
    </div>
    <div class="col-md-8">
        <div class="row">
            <div class="col-md-6">
                <div class="well">2</div>
            </div>
            <div class="col-md-6">
                <div class="well">3</div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="well">4</div>
            </div>
            <div class="col-md-6">
                <div class="well">5</div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-md-4">
        <div class="well">6</div>
    </div>
    <div class="col-md-4">
        <div class="well">7</div>
    </div>
    <div class="col-md-4">
        <div class="well">8</div>
    </div>
</div>
Copy after login

The above is the detailed content of How to Create a Bootstrap Column Spanning Multiple Rows?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template