I have 5 divs, each 100vh in height and 100vw in width, aligned horizontally next to each other within a larger div that is 100vh in height and 500vw in width.
However, there seems to be a border around each of these divs that are making them slightly larger than 100% width and height.
How do I remove this border? I have noticed it's not really a 'border', but more of a space between the divs.
body {
height: 100vh;
margin: 0;
padding: 0;
}
.section {
display: inline-block;
height: 100vh;
width: 100vw;
max-width: 100%;
background-color: blue;
}
.sectionOverlay {
width: 500vw;
height: 100vh;
}
<div class="sectionOverlay">
<div class="section" id="s1">
</div>
<div class="section" id="s2">
</div>
<div class="section" id="s3">
</div>
<div class="section" id="s4">
</div>
<div class="section" id="s5">
</div>
</div>