Change text position in text area

Asked

Viewed 70 times

1

inserir a descrição da imagem aqui

I’m making a contact form, in which I have a texarea that is where the message will be entered, but I want the word "message" to appear on top as the image shows, someone who can help me around?

and wanted so. inserir a descrição da imagem aqui

I have the following code

<textarea rows="3" class="notes" id="mensagem" name="mensagem" ></textarea> Mensagem

1 answer

2


Place the text "Message" inside a label and use the property vertical-align: top through a class.

Behold:

.valign-top{
   vertical-align: top;
}
<textarea rows="3" class="notes" id="mensagem" name="mensagem"></textarea>
<label class="valign-top">Mensagem</label>

  • not I want the "message" right after the first line, I edited the question for better understanding.

  • @Roberto Editei again the answer. I think I understand better what you want to do.

  • 1

    Thank you very much, it helped a lot was exactly what I intended.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.