I'm having trouble creating a text box that spans the entire width of my container.
<div class="row">
<div class="col-md-12">
<form class="form-inline" role="form">
<input type="text" class="form-control input-lg" id="search-church" placeholder="Your location (City, State, ZIP)">
<button type="submit" class="btn btn-lg">Search</button>
</form>
</div>
</div>
Although I have placed the form elements in-line within a col-md-12
div as expected, the text input does not expand to fill more than a few columns. Even when I tried setting an explicit width inline, it had no effect. It seems like a simple issue but for some reason, I can't get it right.
Here is the fiddle for reference: http://jsfiddle.net/52VtD/4119/embedded/result/
EDIT:
The solution provided by another user was comprehensive and extremely helpful. That's what eventually solved my problem. However, I discovered that the root of my initial issue may have been related to the default MVC5 template in Visual Studio 2013. The Site.css file contained this snippet:
input,
select,
textarea {
max-width: 280px;
}
Evidently, this style rule was preventing the text input from expanding properly. A heads up for any future ASP.NET template users...