When utilizing four div grids and increasing the content size of table 2, it causes table 3 to align with table 4, creating a large gap between tables 1 and 3. Is there a way to adjust the responsive content sizing for tables 1, 3, 5... and 2, 4, 6... in order to eliminate the gap between tables 3 and 4?
pg hf1 |
pg hf2
table1 |
table2
table1 |
table2
table1 |
table4
table3 |
table4
where pg hf represents one half of the page i.e col-xs-6.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container container-fluid">
<h1>Offsetting Columns</h1>
<p>Resize the browser window to see the effect.</p>
<div class="col-sm-6" style="background-color:lightgray; margin: 7px 0px 7px 0px; overflow-wrap:break-word ">table1fffff ffffff fffff fffff fffff </div>
<div class="col-sm-6" style="background-color:lightcyan;margin: 7px 0px 7px 0px; overflow-wrap:break-word">table2 yyyyyyy fffffff ffffffy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyyyy yyyyy</div>
<div class="col-sm-6" style="background-color:lightgreen; margin: 7px 0px 7px 0px">table3</div>
<div class="col-sm-6" style="background-color:lightblue; margin: 7px 0px 7px 0px">table4</div>
<!--<div class="row" style="background-color:lavender;"></div>-->
</div>
</body>
</html>