I do not understand why my HTML content is overflowing the viewport both vertically and horizontally. I can scroll in both directions, even though there is no extra content. I have tried changing the width and height on the div of the parents, but that does not fix the problem. Here is my code:
* {
margin: 0;
padding: 0;
border: 0;
box-sizing: border-box;
}
body {
background-color: #111;
color: #fff;
text-align: center;
}
h1 {
padding-top: 200px;
font-family: 'Rubik Microbe', cursive;
font-weight: normal;
font-size: 200px;
}
p {
font-family: 'Megrim', cursive;
font-size: 50px;
}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SITE</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<!-- FONTS -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Megrim&family=Rubik+Microbe&display=swap" rel="stylesheet">
<!-- -->
</head>
<body>
<main>
<h1>SITE</h1>
<p>coming soon...</p>
</main>
<script src="index.js"></script>
</body>
Any ideas?