I need some help with aligning of my div, basically i have label and want @html.Editor(model=>model.CourseName) be next to this label. Somehow its not and need some help.
- <div class="row">
- <div class="col-xs-3">
- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
- Start New Course
- </button>
- </div>
- </div>
-
-
- <!-- Modal -->
- <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="exampleModalLabel">Start New Course</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="form-group row"></div>
- <label for="CourseName" class="col-sm-2 col-form-label">CourseName:</label>
- <div class="col-sm-8">@Html.EditorFor(model => model.CourseName, new { htmlAttributes = new { @class = "form-control", autofocus = "autofocus", placeholder = "CourseName" } }) // here it must next to the label and cant make it need help here please team.
-
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
- <button type="button" class="btn btn-primary">Create Course</button>
- </div>
- </div>
- </div>
- </div>
-
- </div>