mardi 24 mars 2015

Can't set text-area to width: 100% using bootstrap

I'm trying to set a textarea in rails to be the width of its container. I've tested that the css is working on the textarea.


Form View:



<%= form_tag("/pages/thank_you") do %>
<div class="row">
<div class="col-md-6">
<div class="input-group">
<%= text_area_tag :message, nil, class: 'form-control text-area-wide', placeholder: 'Enter Message' %>
</div>
</div>
</div>
<%= submit_tag 'Send Message', class: 'btn btn-success' %>
<% end %>


CSS:



.text-area-wide {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}

Aucun commentaire:

Enregistrer un commentaire