콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
17318 화면

How to insert line break in placeholder in text area field?

 

아바타
취소

Hello ,

You get any solution because i am facing similar problem.

베스트 답변

I am surprised no one came up with a working solution in the last 9 years.

You can simply add & # 1 0 ; (without spaces) to your placeholder text, browser will register it as line feed.

아바타
취소
베스트 답변

Is it possible ?? ;) Have you tried \n \r ?

아바타
취소
작성자

yes tried that didn't work.

베스트 답변

Only by formatting with multiple spaces, e.g.:

1st line of placeholder starts here                                         2nd starts here            etc    

If the size of textarea is fixed, browsers will show such long texts as if they were on multiple lines.

You'll have to fine-tune the number of spaces to make placeholder text look as you like.

아바타
취소
관련 게시물 답글 화면 활동
1
7월 16
4550
0
7월 16
5394
1
12월 15
3954
1
11월 15
5332
1
1월 24
16044