I'm working on designing a simple interface similar to Slack. However, I'm facing an issue where the left navigation is creating some padding from the body, even though I have set the padding and margin to zero.
.app {
display: flex;
flex-direction: row;
margin: 0;
padding: 0;
}
.leftNav {
border: 1px solid black;
height: 100vh;
padding: 20px;
margin: 0;
}
.main {
padding: 10px;
}
<div class="app">
<div class="leftNav">left navigation</div>
<div class="main">main content</div>
</div>