html - bootstrap table inside modal size issues -


i have bootstap modal tabs in modal body. in each tab have regular table, rows later appended table jquery.

my issue text in columns never linebreak, right side of table shown outside of modal body.

how can fix this? html modal.

<div class="modal modal-wide fade" id="detailsmodal" aria-hidden="true" style="display: none;">     <div class="modal-dialog">         <div class="modal-content">             <div class="modal-header">                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>                 <h4 class="modal-title" id="details">detaljer</h4>             </div>             <div class="modal-body" id="detailsmodalbody">                 <!-- nav tabs -->                 <ul class="nav nav-tabs">                     <li class="active"><a href="#metadatatab" data-toggle="tab">metadata</a></li>                     <li><a href="#enhettab" data-toggle="tab">enhet</a></li>                     <li><a href="#appartab" data-toggle="tab">appar</a></li>                 </ul>                 <!-- tab panes -->                 <div class="tab-content">                     <div class="tab-pane active" id="metadatatab">                         <br />                         <br />                         <table id="detailvalues" class="table table-bordered">                             <thead>                                 <tr bgcolor="#4d4f53">                                     <th>metadata</th>                                     <th></th>                                 </tr>                             </thead>                             <tbody>                                 <tr>                                     <td>appleid#1: </td>                                     <td id="modalmetadatacol1">no data</td>                                 </tr>                                 <tr>                                     <td>appleid password#1: </td>                                     <td id="modalmetadatacol2">no data</td>                                 </tr>                                 <tr>                                     <td>appleid#2: </td>                                     <td id="modalmetadatacol3">no data</td>                                 </tr>                                 <tr>                                     <td>appleid password#2: </td>                                     <td id="modalmetadatacol4">no data</td>                                 </tr>                                 <tr>                                     <td>simpin: </td>                                     <td id="modalmetadatacol5">no data</td>                                 </tr>                                 <tr>                                     <td>losekod: </td>                                     <td id="modalmetadatacol6">no data</td>                                 </tr>                             </tbody>                         </table>                     </div>                     <div class="tab-pane" id="enhettab">                          <br />                         <br />                         <table class="table table-bordered" id="devicedetailstable">                             <thead>                                 <tr bgcolor="#4d4f53">                                     <th>detalj</th>                                     <th>värde</th>                                 </tr>                             </thead>                             <tbody id="devicedetails">                             </tbody>                         </table>                      </div>                     <div class="tab-pane" id="appartab">                          <br />                         <br />                         <table class="table table-bordered">                             <thead>                                 <tr bgcolor="#4d4f53">                                     <th>apps</th>                                 </tr>                             </thead>                             <tbody id="appvalues">                             </tbody>                         </table>                      </div>                  </div>             </div>             <div class="modal-footer">             </div>         </div>     </div> </div> 

try using word-wrap:break-word in css break line in coloumn , width:auto table restrict size in modal.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -