Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breaking one big list into horizontal multi-column list Bootstrap 3

I'm trying to break two ul lists of jobs under the two headers, "Job Categories" and "Job Function,"into multiple columns, columns not necessarily the same height, and responsive. Otherwise, the single column lists are too long. These two headers and lists should be inline (horizontal). This obviously needs to be responsive for mobile as well.

What's the best way to do this? Visual example below: enter image description here

like image 876
JBear Avatar asked Nov 10 '22 11:11

JBear


1 Answers

Using the grid system, one could "break-up the cells" of the bootstrap grid system:

<div class="container">
      <!--  Content Area-->
      <div class="row">
        <div class="col-md-5 col-sm-6">
          <div class="row">
            <h2 class="">Job Functions</h2>
          </div>
          <div class="row">
            <div class="col-md-4 col-sm-4">
              <div class="row content">
                <ul class="list-unstyled">
                 <li>,</li>
                 <li>,</li>
                </ul>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-4 col-sm-4">
              <div class="row content">
                <ul class="list-unstyled">
                 <li>,</li>
                 <li>,</li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-6 col-sm-5">
          <div class="row">
            <h2 class="">Job Categories</h2>
          </div>
          <div class="row">
            <div class="col-md-4 col-sm-4">
              <div class="row content">
                <ul class="list-unstyled">
                 <li>,</li>
                 <li>,</li>
                </ul>
              </div>
            </div>
            <div class="row">
            <div class="col-md-4 col-sm-4">
              <div class="row content">
                <ul class="list-unstyled">
                 <li>,</li>
                 <li>,</li>
                </ul>
              </div>
            </div>
            <div class="row">
            <div class="col-md-4 col-sm-4">
              <div class="row content">
                <ul class="list-unstyled">
                 <li>,</li>
                 <li>,</li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
</div>  

It worked. Enjoy!

like image 156
JBear Avatar answered Nov 15 '22 06:11

JBear