I need some help centering this temperature converter on the page. I've tried adjusting the columns and rows, but the alignment is still off. Here is a screenshot for reference:
https://i.sstatic.net/xR8rA.png
Below is the code I am using:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Temperature Converter</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d6b4b9b9a2a5a2a4b7a696e3f8e7f8e5">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<style>
.content {
padding-top: 30px;
background-color: #eeeeee;
}
body {
background: linear-gradient(to left, black, purple);
}
</style>
</head>
<body>
<div class="container">
<div class="row row-sm-offset-5">
<div class="col-sm-3 text-center content">
<h2>
Temperature Converter
</h2>
<form action="">
<div class="form-group">
<label for="userInput"> Enter the temperature: </label>
<input type="number" id="userInput">
</div>
<div class="form-group" style="margin-top: 10px;">
<input type="button" value="To Celsius" onclick="toCelsius()">
<input type="button" value="To Fahrenheit" onclick="toFahrenheit()">
</div>
</form>
<p id="result"> </p>
</div>
</div>
</div>
<!-- javascript file placed right before closing tag to reduce log times caused by script -->
<script src="alert.js"></script>
</body>
</html>
If you have any suggestions on how to fix the alignment, please let me know. Thank you!