I want to make a message textbox, when there is a newline the text will go down to fit the size of the textbox

text here text here text here text here text here text here
text here text here text here text here
text here text here
text here

Thank You

Have you tried css word-wrap?

I haven't.

Try it and tell if it is what you want to do.

Yes. I'll tell you for progress. Thank You.

Member Avatar for LastMitch

@bLuEmEzzy

The question you ask has nothing with php? It's more css. This is the <textarea> more related to php:

<textarea id="" name="" rows="15" cols="80" style="width: 75%"></textarea>

@lastMitch, textarea is normally used for inputs instead of displays.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.