How to Take "resize" from a textarea?

Asked

Viewed 426 times

2

< script src = "//cdn.tinymce.com/4/tinymce.min.js" > < /script> <
  script > tinymce.init({
    selector: 'textarea'
  }); < /script>
<div class="form-group">
  <div class="col-xs-12 col-md-6 ">
    <textarea id="txtDesc" name="message" rows="5" maxlength="1000" runat="server" style="resize: none;"></textarea>
  </div>
</div>

3 answers

2


  • Thanks bro, that was exactly the problem

  • @Danilogonçalves good that solved, tmj!

0

The following css property disables resize behavior of textarea

textarea {
    resize: none;
}
  • I’ve done it this way and it doesn’t work at all

  • Have you ever tried to add a fixed width and height to it? For example: textarea { resize: None; height: 300px; width: 100%; }

0

Speak Dan, just add resize: none; for the tag. If you want, you can still manipulate its height and width via css.

Example:

textarea#example {
  resize: none;
  width: 50%;
  height: 100px;
}
<textarea id="example"> Exemplo para ex aluno da UNASP </textarea>

  • Thanks for the help Jorge, the problem was in the plugin of my textarea, in the tag script I should manipulate the resize, the guy upstairs gave me what should be done, Thanks again

Browser other questions tagged

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