Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 473.7k

Modal popup is stretched away from the original center

Dec 7 2020 4:55 AM
Hi Team
 
I need some help to prevent my popup modal form, when its clicked it stretched far away from the original layout and makes it difficult to see other controls. Let me share my front end code.
  1.                 <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">People</button>  
  2. <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">  
  3.                     <div class="modal-dialog" role="document">  
  4.                         <div class="modal-content">  
  5.                             <div class="modal-header">  
  6.                                 <h1 class="modal-title" id="exampleModalLabel">Add people</h1>  
  7.                                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">  
  8.                                     <span aria-hidden="true">×</span>  
  9.                                 </button>  
  10.                             </div>  
  11. </div>  
 

Answers (2)