I'm trying to create a form with radio buttons and using Bootstrap 4 to align them horizontally with the .form-check-inline
class. However, this causes the input labels to be on the same line as the buttons:
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
</head>
<body>
<div class="container">
<form>
<div class="form-group">
<label>Label</label>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input type="radio" name="test">
Option 1
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input type="radio" name="test">
Option 2
</label>
</div>
</div>
</form>
</div>
</body>
</html>
This layout isn't visually appealing - I'd like the labels to be on their own line, separate from the radio buttons. How can I achieve this using Bootstrap's design principles?