소프트웨어/HTML

content, content에서 개행(enter, <br>)입력하기

개발자_이훈규 2015. 11. 3. 22:09


attr([id])와 html의 content property를 사용하면,

html의 property를 css에서 사용할 수 있다.


자세한건 w3school을 참조하자.

http://www.w3schools.com/cssref/tryit.asp?filename=trycss_gen_content



매우 유용한건 확실하다!


+

new line을 추가하는 방법

figcaption:before
{
    content: 'Figure \a' attr(title);
    white-space: pre;
}

http://stackoverflow.com/questions/9062988/newline-character-sequence-in-css-content-property