Search code examples
csstwitter-bootstraptext-align

how to align text in textarea in bootstrap 2.3.2


I want to show data in textarea from database. But I have facing a problem. I cant align that text in left.All time it shows data in center. Please help me.

My code :

<span>
   <textarea disabled class="text-left" style="width:510px;max-height:200px;overflow-y:auto;text-align:left;" id="textareaMessage">{{sentMessage.message}}</textarea>
<span>

Solution

  • Here is no issue in your CSS because if you enter hard-coded value instead of {{sentMessage.message}}, text automatically comes to left. So please check the database entries which are coming to that text area are properly formatted or there itself any blank spaces present.