Probably I am missing something fundamental, but here is the fiddle:
https://jsfiddle.net/cqn5g94r/5/
html {
background: black;
}
.header {
font-size: 6vh;
color: rgb(245, 246, 230);
text-align: center;
background: linear-gradient(to right, #45adc1, #64f1c2);
/* DELETE THE BORDER*/
border: 1px solid #333;
}
<div id="header" class="header">
<p>My Title</p>
</div>
If you delete the border, you can see, that the whole thing shrinks. And I want it to be thinner, but without the emty space above and below. Some Help anyone?