Using Bootstrap 3 with a layout of 2 columns in 1 row. Need to find a way to shift the content in the second column to the next row if the text in the first column exceeds one row. Below is the code snippet with "Lorem Ipsum" text staying within the boundaries of the first column, producing the desired output:
<div class="col-sm-12">
<div class="panel panel-default">
<header class="panel-heading">
<i class="fa fa-folder-o text-success fa-fw"></i> Basic Info <span class="text-success pull-right">
<b></b>In Use </span>
</header>
<div class="panel-body">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-6 col-xs-12">
<div class="row m-t-8 m-b-8">
<div class="col-sm-6 col-xs-12"> Agenci </div>
<div class="col-sm-6 col-xs-12">
<span class="text-primary">What is Lorem Ipsum</span>
</div>
</div>
</div>
<div class="col-sm-6 col-xs-12">
<div class="row m-t-8 m-b-8">
<div class="col-sm-6 col-xs-12"> Department </div>
<div class="col-sm-6 col-xs-12">
<span class="text-primary"> Retail Audit </span>
</div>
</div>
</div>
<div class="col-sm-6 col-xs-12">
<div class="row m-t-8 m-b-8">
<div class="col-sm-6 col-xs-12"> PTJ Paid </div>
<div class="col-sm-6 col-xs-12">
<span class="text-primary">10000001</span>
</div>
</div>
</div>
<div class="col-sm-6 col-xs-12">
<div class="row m-t-8 m-b-8">
<div class="col-sm-6 col-xs-12"> PTJ Responsible </div>
<div class="col-sm-6 col-xs-12">
<span class="text-primary">348812</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
View the working jsfiddle example: https://jsfiddle.net/od6eup8w/
If the text in the first column goes beyond one line, it currently breaks to the next line as shown in the image - not the intended result.
https://i.sstatic.net/osPMW.png
To achieve the desired display where the "Lorem Ipsum" text fills the whole line horizontally and shifts the "Department" section below, refer to this alternate visualization: