JSFiddle - React, Tailwind, and code Playground

by Asim Shariff

HTML

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<!-- 
  Bootstrap docs: https://getbootstrap.com/docs
-->

<div class="container">
  <div class="row">
    <div class="col 12 col-md-6">
      <div class="btn btn--vehicle-condition">
        <h4>
          Preowned
        </h4>
        <p>
          A bit of information about what 'Preowned' means and how it affects the buyer.
        </p>
      </div>
    </div>
    <div class="col 12 col-md-6">
      <div class="btn btn--vehicle-condition">
        <h4>
          New
        </h4>
        <p>
          A bit of information about what 'New' means and how it affects the buyer.
        </p>
      </div>
    </div>
  </div>  
</div>

CSS

.row {
  background: #f8f9fa;
  margin-top: 20px;
}

.col {
  border: solid 1px #6c757d;
  padding: 10px;
}

h4 {
  text-align: center;
  color: #0e2753;
}
.btn p {white-space:normal}

.btn--vehicle-condition {
  text-align: center;
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 3px;
  padding-top: 15px;
  margin-bottom: 30px;
}