- white-space : normal 처럼 사용합니다.
속성
- normal : 기본값 입니다.
- pre : <pre> 태그와 같은 처리를 합니다. 엔터키는 <br> 처리되며 줄바꿈은 작성된 형태대로 유지됩니다.
- nowrap : 줄바꿈을 하지 않습니다. 지정된 영역을 뚫고 나갈 수 있죠.
- pre-wrap : pre 와 같으나 줄바꿈 처리가 됩니다.
- pre-line : pre-wrap 보다 줄바꿈 처리가 좋습니다. (애매하군요 ^^;)
위 텍스트 부분의 태그 구성
<div class="css_test">
When the sun shines on the mountains And the night is on the run
It's a new day It's a new way And I fly up to the sun
I can feel the morning sunlight I can smell the new mown hay
I can hear god's voices calling On my golden skylight way
<br><br>
나의 모든 사랑이 떠나가는 날이 당신의 그 웃음 뒤에서 함께하는데
철이 없는 욕심에 그 많은 미련에 당신이 있는 건 아닌지 아니겠지요
시간은 멀어 집으로 향해 가는데 약속했던 그대만은 올 줄을 모르고
</div>