css - label top left for textarea when textarea set to a number of columns -


i'm sure must have been asked before cannot find answer.

i have div centers textareas. sets heading above textarea in middle.

i cannot heading @ top left of textarea box. can set alignment left , heading in correct place both left.

the problem comes in when textarea set number of columns. once happens, html/css dosen't seem know top left corner place heading.

tried except right one.

<label for="bikes">bikes have owned </label><br/>  <textarea rows='3' cols='50' id='bikes' name='bikes' >some text </textarea>

thanks

is looking for?

.txtarea-cont textarea{    display:block;    margin:auto;  }
<div class="txtarea-cont">  <label for="bikes">bikes have owned </label>         <textarea rows='3' cols='50' id='bikes' name='bikes' >some text </textarea>  </div>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -