How to change the default size of form field ?
Opened this issue · 1 comments
santhukpdjango commented
If i wanted to change the default width of username text field in the user registration form ,how can i acheive this ?
palash247 commented
If i wanted to change the default width of username text field in the user registration form ,how can i acheive this ?
You can always enclose any field in div
with any bootstrap class in the jinja template.
For example this will halve the current width of the field
<div class="col-sm-6">
{{ form.username.label(class="form-control-label")}}
{{ form.username(class="form-control form-control-lg") }}
</div>