Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 480.9k

Modal popup is stretched from the right and not in the center

Dec 3 2020 2:20 AM
Hi Team
 
I have a modal popup, the problem its appearing on the right and cant see the rest of its button and need some help to make it be on the center and using bootstrap. Last question how do i then remove the catche when use done select all the course, it always remain as blur on the layout and its not good for the user its a bug.
  1. <div class="row">  
  2.                                <div class="form-group">  
  3.                                    <div class="col-xs-3 ml-auto">  
  4.                                        <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">  
  5.                                            Start New Course  
  6.                                        </button>  
  7.                                    </div>  
  8.                                </div>  
  9.   
  10.   
  11. <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">  
  12.                                    <div class="modal-dialog" role="document">  
  13.                                        <div class="modal-content">  
  14.                                            <div class="modal-header">  
  15.                                                <h5 class="modal-title" id="exampleModalLabel">Start New Course</h5>  
  16.                                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">  
  17.                                                    <span aria-hidden="true">×</span>  
  18.                                                </button>  
  19.                                            </div>  
  20.   
  21.                                                <div class="form-group row">  
  22.                                                    <label for="CourseName" class="col-sm-3 col-form-label">CourseName</label>  
  23.                                                    <div class="col-sm-5">  
  24.   
  25.                                                        @Html.EditorFor(model => model.Dashboard.CourseName, new { htmlAttributes = new { @class = "form-control"autofocus = "autofocus"placeholder = "CourseName" } })  
  26.                                                    </div>  
  27.                                                </div>  
  28.                                                @using (Html.BeginForm("SaveCourse", "Home", FormMethod.Post))  
  29.                                                {  
  30.                                                    <div class="form-group row">  
  31.                                                        <label for="Content-Licence" class="col-sm-3 col-form-label">Content Licence</label>  
  32.                                                        <div class="col-sm-5">  
  33.                                                            @Html.DropDownListFor(model => model.eCourses.CourseLicence, CourseListData as List<SelectListItem>)  
  34.                                                        </div>  
  35.                                                    </div>  
  36.   
  37.                                                }  
  38.                                                <div class="modal-footer">  
  39.                                                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>  
  40.                                                    <input type="submit" value="Create" class="btn btn-success" />  
  41.                    
  42.   
  43.                                                </div>  
  44.                                        </div>  
  45.                                    </div>  
  46.                                </div>  
 

Answers (3)