I've just started learning Angular 6. I created a simple Angular app in which I created a header-component.
header.component.html
<header class="head">
<div class="header-background">
</div>
</header>
app.component.html
<app-header></app-header>
header.component.css
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.head {
height: 90vh;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid green;
}
.header-background {
background-color: rgba(128, 128, 128, 0.09);
height: 80%;
width: 90%;
margin: 0 auto;
}
When I run ng serve I see a white spacing at the top, left and right I'm not sure what it is. I have double checked padding and margin is 0px.
Here you can see that there is white space at the top, left and right outside my .head's border. I have also added bootstrap@3.7.7 in my project file.
Pls provide the solution and also state the reason why I'm facing this problem.
This is the space I'm talking about.

