I need to create a radio form with a question and three answers. The form should be inline, with the question taking up three columns and the answers div spanning nine columns. However, when I set the column widths to 3 and 9 respectively, the line breaks and the question does not appear on the same line as the answers.
<!DOCTYPE html>
<html lang="en">
<head>
<title>bootstrap</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88eae7e7fcfbfcfae9f8c8bca6bea6b8">[email protected]</a>/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1 K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2 l" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid bg-dark text-light">
<form>
<div class="form-group form-check-inline form-row border border-danger">
<div class="col-3 border border-danger">This is the first multiple choice question</div>
<div class="col-9 form-check-inline border rounded-pill border-danger">
<div class="form-check col">
<label class="form-check-label" for="q1a1">
<input class="form-check-input active" type="radio" id="q1a1" name="q1" value="a1"
checked="checked">
Answer one text which is a single line
</label>
</div>
<div class="form-check col">
<input class="form-check-input" type="radio" id="q1a2" name="q1" value="a2">
<label class="form-check-label" for="q1a2">Answer two</label>
</div>
<div class="form-check col">
<input class="form-check-input" type="radio" id="q1a3" name="q1" value="a3">
<label class="form-check-label" for="q1a3">Answer three</label>
</div>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C OGpamoFVy38MVBnE IbbVYUew OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b4b544b4b5e491551487b0a150a0d150a">[email protected]</a>/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU 6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="791b16160d0a0d0b1809394d574f5749">[email protected]</a>/dist/js/bootstrap.min.js"
integrity="sha384 YQ4JLhjyBLPDQt //I STsc9iw4uQqACwlvpslubQzn4u2UU2UFM80nGisd026JF"
crossorigin="anonymous"></script>
</body>
</html>
Can someone help explain why the second div ends up on a new line even though the total columns add up to only 12?