CSS 라이브 데모: text-underline-position 데모 버튼을 클릭해 보세요!
.underline-under {
    text-decoration: underline;
    text-underline-position: under;
}
CSS 라이브 데모: text-underline-offset 데모 버튼을 클릭해 보세요!
.underline-offset {
    text-decoration: underline;
    text-underline-offset: 5px;
}
<h4>일반적인 밑줄</h4>
<p>ABC ghij 가나다 1234</p>

<h4>정교한 위치와 간격을 가진 밑줄</h4>
<p class="custom-underline">ABC ghij 가나다 1234</p>
p {
    text-decoration: underline;
}
.custom-underline{
    text-underline-position: under;
    text-underline-offset: 2px;
}
실제 적용된 모습