데모-1: 텍스트 행간의 높이 설정 데모 버튼을 클릭해 보세요!
<div style="background-color: yellowgreen;">
    <input type="text">
</div>
데모-2: 라인 박스의 최소 높이를 지정 데모 버튼을 클릭해 보세요!
selector {
    line-height: /* value */
}
/* 키워드 값 */
line-height: normal;

/* 숫자 값 */
line-height: 1.5; /* 현재 font-size의 1.5배의 크기 */

/* % 단위 값 */
line-height: 150%; /* 현재 font-size의 150%의 크기 */

/* 길이 단위 값 */
line-height: 28px;
line-height: 2.5em;

/* font 단축 표현 속성 */
font: 25px/1.5 arial, sans-serif; /* line-height는 1.5 */

/* 글로벌 값 */
line-height: inherit;
line-height: initial;
line-height: revert;
line-height: revert-layer;
line-height: unset;
<style>
    p {
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 500%">
    이 텍스트는 line-height가 500%입니다.
</p>
<p style="line-height: 100px">
    이 텍스트는 line-height가 100px입니다.
</p>
<p style="line-height: 5px">
    이 텍스트는 line-height가 5px입니다.
</p>
실제 적용된 모습
<style>
    p {
        background-color: yellowgreen;
        border: 2px solid red;
    }
</style>
<p style="line-height: 500px">
    <!-- 인라인 콘텐츠가 없을 경우 작동하지 않습니다. -->
</p>
실제 적용된 모습
<style>
    p {
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 100px">
    <input type="text" placeholder="인라인 콘텐츠">
</p>
실제 적용된 모습
<style>
    p {
        display: flex;
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 100px">
    <input type="text" placeholder="인라인 콘텐츠">
</p>
<p style="line-height: 100px">
    텍스트
</p>
실제 적용된 모습
<p class="narrow">
    텍스트가 세로 쓰기 모드(writing-mode가 vertical-rl 또는 vertical-lr인 경우)로 설정되어 있을 때
    line-height 속성은 세로 쓰기 모드에서 세로 줄 사이의 간격을 조정합니다.
</p>
<p class="wide">
    텍스트가 세로 쓰기 모드(writing-mode가 vertical-rl 또는 vertical-lr인 경우)로 설정되어 있을 때
    line-height 속성은 세로 쓰기 모드에서 세로 줄 사이의 간격을 조정합니다.
</p>
p {
    border: 1px solid;
    padding: 0.6em;
    background-color: yellowgreen;
    height: 200px;
    margin-bottom: 1em;
    
    writing-mode: vertical-rl; /* 텍스트가 세로 쓰기 모드 */
}
.narrow {
    line-height: 1;
}
.wide {
    line-height: 2;
}
실제 적용된 모습