0

I am trying to create a layout like this one in bootstrap3

enter image description here

Found something similar here but not able to make it work:

https://jsfiddle.net/SxcqH/52/

.container {
    margin-top: 10px;
}
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"/>

<div class="row-fluid">
    <div class="span4"><div class="well">1<br/><br/><br/><br/><br/></div></div>
    <div class="span8">
        <div class="row-fluid">
            <div class="span6"><div class="well">2</div></div>
            <div class="span6"><div class="well">3</div></div>
        </div>
        <div class="row-fluid">
            <div class="span6"><div class="well">4</div></div>
            <div class="span6"><div class="well">5</div></div>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div class="span4">
        <div class="well">6</div>
    </div>
    <div class="span4">
        <div class="well">6</div>
    </div>
    <div class="span4">
        <div class="well">6</div>
    </div>
</div>

1
  • Your markup is still for Bootstrap 2. That's not going to fly at all. I suggest you convert to proper version 3 syntax and see where that gets you. You need an outer row with three columns, and you need two rows nested in the first column containing one and two columns, respectively.
    – isherwood
    Commented Jan 5 at 17:10

1 Answer 1

0

I was able to do it with a nested grid

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />

<div class="row">


  <div class="row mx-auto" style="height: 200px;">
    <div class="col-sm-6">

      <div class="row "> <!-- nested row 1 -->
        <div class="col-sm-12 "> <!-- nested quick links col -->
          AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        </div>

        <div class="row"> <!-- nested row 2 -->
          <div class="col-sm-6">
            BBBBBBB
          </div>
          <div class="col-sm-6">
            CCCCCCCCC
          </div>

        </div>

      </div>
    </div>

    <div class="col-sm-3"> DDDDDD </div>

  </div>
</div>

Not the answer you're looking for? Browse other questions tagged or ask your own question.