라인 높이 Line Height > 퍼블리셔팁

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

라인 높이 Line Height 정보

CSS 라인 높이 Line Height

본문

라인 높이 Line Height

 

이 line-height속성은 줄 사이의 간격을 지정하는 데 사용됩니다.

 

p.small {

    line-height: 0.8;

}

 

p.big {

    line-height: 1.8;

}

 

 

<!DOCTYPE html>

<html>

<head>

<style>

p.small {

    line-height: 0.7;

}

 

p.big {

    line-height: 1.8;

}

</style>

</head>

<body>

 

<p>

This is a paragraph with a standard line-height.<br>

The default line height in most browsers is about 110% to 120%.<br>

</p>

 

<p class="small">

This is a paragraph with a smaller line-height.<br>

This is a paragraph with a smaller line-height.<br>

</p>

 

<p class="big">

This is a paragraph with a bigger line-height.<br>

This is a paragraph with a bigger line-height.<br>

</p>

 

</body>

</html>


6119aede4b1aba12649bdc72c42e7088_1486916495_1026.PNG

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로