2
Young man follows an example. Use measures in %
and in EM
to be proportional without needing to make a size style for each H
Look how it turned out
h1, h2, h3, h4, h5, h6 {
position: relative;
display: inline-block;
font-family: sans-serif;
}
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
content: "";
position: absolute;
top: 110%;
left: 0;
width: 60%;
height: 0.25em;
background-color: orangered;
}
<h1>Meu H1</h1><br>
<h2>Meu H2</h2><br>
<h3>Meu H3</h3><br>
<h4>Meu H4</h4><br>
<h5>Meu H5</h5><br>
<h6>Meu H6</h6><br>
Obg! It worked!
– Thiago Cunha
@Thiagocunha became very cool right, good luck with the project! []s
– hugocsl