Is there a way to reduce the space between the strings "Text 1" and "its simple" to just 10 pixels using margin-top: 10px;
? When I apply margin-top: 10px;
, the total space seems to be more than just 10 pixels due to shifting.
In my understanding, the white space is created by the font's margin. How can I adjust the size of this whitespace?
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.title {
font-family: Roboto;
font-size: 41px;
font-weight: 900;
text-transform: uppercase;
color: #f9bf3b;
text-align: center;
}
.simple .title_big {
font-family: Roboto;
font-size: 80px;
font-weight: 900;
text-transform: uppercase;
color: #000000;
text-align: center;
}
<h1 class="title">Text 1</h1>
<div class="simple">
<h2 class="big_title">its simple!</h2>
<div class="line"></div>
</div>
<h2 class="title">Text 2</h2>