I have a series of rows consisting of a button and text, like so:
[Button] [Text]
[Button] [Text]
[Button] [Text]
...
When I apply the multicol class, they eventually wrap around, like so:
[Button] [Text] [Button] [Text]
[Button] [Text] ....
Unfortunately, in many cases, the button or the text gets broken in half when going into the next column. Using "display: inline-block" makes my buttons and text vary in size on different screen resolutions, and makes them spaced strangely.
What is the best way to keep the [Button] [Text] combination from breaking in the column, while keeping each [Button] [Text] combination equally spaced, and looking the same?
.multicol {
column-count:2;
-moz-column-count:2;
-webkit-column-count:2;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- Imagine 20-25 of these in a row -->
<div class='multicol'>
<div class='row'>
<div class='col-xs-5'>
<button class='btn btn-block' style='min-width: 100px;'> (VARYING-LENGTH BUTTON NAMES HERE) </button>
</div>
<div class='col-xs-7'>
<p> (VARYING-LENGTH DESCRIPTIONS HERE) </p>
</div>
</div>
</div>