I just started an app on NextJS and can't seem to remove the white borders around the page. I've used NextJS before and have inspected my previous projects, and even tried copy/pasting the code from there to here and still the white border remains. Please help me remove them! Is there something I'm missing? I've tried several css methods that would allegedly remove the borders (e.g. border: none, margin: 0) but none of them have worked.
inspection showing that the white border is in the body tag
index.js
import styles from '../styles/Home.module.css';
export default function Home() {
return (
<div className={styles.container}>
hello
</div>
)
}
globals.css
html, body {
margin: 0px;
}
Home.module.css
.container {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: GREEN;
margin: 0 auto;
}
.main {
padding: 5rem 0;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
@media (max-width: 600px) {
.grid {
width: 100%;
flex-direction: column;
}
}