Answers for "bootstrap nested columns"

5

Bootstrap 4 Grid

<!-- Control the column width, and how they should appear on different devices -->
<div class="row">
  <div class="col-*-*"></div>
  <div class="col-*-*"></div>
</div>
<div class="row">
  <div class="col-*-*"></div>
  <div class="col-*-*"></div>
  <div class="col-*-*"></div>
</div>

<!-- Or let Bootstrap automatically handle the layout -->
<div class="row">
  <div class="col"></div>
  <div class="col"></div>
  <div class="col"></div>
</div>
Posted by: Guest on December-06-2020
0

nested columsn inside bootstrap

<div class="container-fluid">
  <div class="col-lg-12">
      <div class="row">
        <div class="col-sm-6">
            <div class="well">
              <p>First Part</p>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="well">
              <p>Second Part</p>
            </div>
        </div>
      </div>
        <div class="row">
            <div class="col-sm-6">
              <div class="well">
                <div class="row">
                  <div class="col-md-6">
                    <div class="well">
                    <p>Nested 1</p>
                  </div>
                  </div>
                  <div class="col-md-6">
                    <div class="well">
                    <p>Nested 2</p>
                  </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-md-6">
                    <div class="well">
                    <p>Nested 3</p>
                  </div>
                  </div>
                  <div class="col-md-6">
                    <div class="well">
                    <p>Nested 4</p>
                  </div>
                  </div>
                </div>
            </div>

            </div>
            <div class="col-sm-6">
              <div class="well">
                <p>Fourth Part[enter image description here][1]</p>
                </div>
              </div>
          </div>
    </div>                      
</div>
Posted by: Guest on November-25-2020
8

.col-12 bootstrap

.col-12{
	flex: 0 0 100%;
	max-width: 100%;
}
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language