'Is the width of the Bootstrap Dropdownlist changable?
I create asp.net MVC web project using Visual Studio 2015, the Bootstrap is used when I create UI form of razor view. I want to increase the width of Bootstrap Dropdownlist by using the following codes, but the code doesn't work, is width of the bootstrap dropdownlist changeable?
<div class="form-group">
<div class="col-xs-3 text-right">
<label for ="coordDesc">Coord </label>
</div>
<div class="col-xs-9" id="t1">
@Html.DropDownList("MovieType", new SelectList(ViewBag.MovieType, "Value", "Text"), new { @class = "form-control", style = "width:1200px;" })
</div>
</div>
Solution 1:[1]
what works for me:
@Html.DropDownList("MovieType", new SelectList(ViewBag.MovieType, "Value", "Text"), new { @class = "form-control", style = "max-width: 100%" })
and I took this answer from L Cruz 's comment
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Flowra |
