I’ve a twitter bootstrap 3 navbar with a input field. I want to increase the width of the input field. I’ve tried setting the col
size but it doesn’t work.
The html is quite long so please refer to the bootply.
I’ve a twitter bootstrap 3 navbar with a input field. I want to increase the width of the input field. I’ve tried setting the col
size but it doesn’t work.
The html is quite long so please refer to the bootply.
4
Answers
If you inspect element then you will find “.navbar-form” and “.form-control” has width as auto.
So to increase the width of your input you need to override its width as:
or separately as
You can use the pixel value to increase the width of the text field.
And use the percentage value for the responsive mode.
Here you go I have updated your link and this is new with width 400px;. Let me know if you didn’t understand it
HTML
CSS
jsfiddle-link