My title is currently taking up the entire row, but I want it to only be as wide as the text itself and not extend to the width of the parent row. Any suggestions on how to achieve this?
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Survey Creator</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aeccc1c1dadddadccfde83c7cdc1c0ddee9f809b809e">[email protected]</a>/font/bootstrap-icons.css"
/>
</head>
<body style="background-color: rgb(0, 0, 0)">
<div style="height: 120px">
<div class="w-100 h-50" style="background-color: rgb(255, 255, 255)">
</div>
<div
class="w-100 h-50 d-inline-block"
style="background-color: rgb(134, 188, 37)"
></div>
</div>
<div class="d-flex justify-content-center mt-5">
<div
id="survey"
class="container justify-content-center"
style="height: 600px; width: 1000px; background-color: white"
>
<div class="row">
<h1
class="display-4 mt-3 text-secondary text-center border"
contenteditable="true"
>
Survey Name
</h1>
</div>
</div>
</div>
</body>