-1
*{
margin: 0px;
}
header{
height: 100%;
width: 100%;
margin-top: 0;
margin-bottom: 0;
background-color: black;
color: white;
}
<header>
<h1>Web Calculator</h1>
</header>
Try what I did. Some elements see with standard formatting. Like the H1 that has that margin responsible for the spaces that disturb you.
o * is a selector universal. I mean, I’m saying with the:
*{
margin: 0px;
}
That the margin of all elements should be zero.
If you change the margin of any element this rule will be subcrite and the element you define will have the margin you determine.
Thank you very much!
– Enzo_Gabriel
You are welcome. If you have solved your problem please mark the answer so that the question is as resolved.
– Thiago Soares Mota