This is my first time using stack overflow so bear with me. The problem I'm having is when I try to align my divs to the center of the screen, it won't work for some reason. I researched everywhere to try and find a solution but it doesn't work. Does anyone know what the problem is?
body{
margin: 0;
background-image: linear-gradient(to top, rgba(14, 245, 26, 0.829), rgb(0, 102, 255));
background-attachment: fixed;
}
.container{
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
<!DOCTYPE html>
<html>
<head>
<title>Super Cool Calculator</title>
<link href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="container">
<div id="heading">
<h3>The Great Calculator</h3>
<h4>By Antdog0101</h4>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
Here is the result of when I save my code: https://i.stack.imgur.com/I1dRl.png