Thank you for taking the time to help me with my question on Stack Overflow. I am new to using this platform, so please be patient with me. I am facing an issue where I cannot get my divs to align in the center of the screen despite trying various solutions that I found through research. Can anyone provide insight into what may be causing this problem?
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>
After saving my code, the alignment issue persists as shown in this screenshot: https://i.sstatic.net/I1dRl.png