Home >Web Front-end >CSS Tutorial >How to Make a Bootstrap Column Span Two Rows?
Bootstrap Multi-Line Crossbar
You want to create a grid layout like this using Bootstrap:
[Image: Shown A grid layout in which the first column (labeled 1) Spanning two lines]
The difficulty you are having is how to create the first box (labeled 1) that spans two lines.
Solution
For Bootstrap 3:
<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>
The above is the detailed content of How to Make a Bootstrap Column Span Two Rows?. For more information, please follow other related articles on the PHP Chinese website!