In my HTML page, I have many width: 100vw things that take up the entire page. There is a vertical scroll bar, and it causes a horizontal scrollbar (because the vertical scrollbar takes up like 20 pixels).
The bigger problem this causes is my things seem off-centered. Though only slightly, once you notice it (which takes like 3 seconds of staring), it doesn't go away and is very frustrating. I posted a screenshot of a super small browser window. I also posted the code.
Image
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
div {
width: 100vw;
height: 60vh;
margin: 0 0 1vh 0;
background-color: #CCC;
text-align: center;
}
</style>
</head>
<body>
<div>A div tag</div>
<div>A div tag</div>
</body>
</html>
The text is off center. How do I fix this?