<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<div class="container">
<h4>Which car do you have?</h4>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="hatchback" autocomplete="off" checked> Hatchback
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="sedan" autocomplete="off"> Sedan
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="suv" autocomplete="off"> SUV
</label>
</div>
</div>
body {
text-align: center;
padding-top: 25px;
}
h4 {
padding-bottom: 10px
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.