html - css full width modal overlay below button -


i have table this: ttable buttons

i when press (button1) result this: enter image description here

and when press (button2) result this: enter image description here

hi level html mock-up:

<div id="item-warapper">     <div id="item-header">           <label>entity title</label>     </div>     <div id="item-detail">         <table>             <thead>                 <tr>                     <td>detail id</td>                     <td>detail quantity</td>                     <td>detail value</td>                 </tr>             </thead>             <tbody>                 <tr>                     <tr id="row1">                         <td>                             001                             <button>open detail</button>                         </td>                         <td>5.00</td>                         <td>200.00</td>                     </tr>                     <tr id="row2">                         <td>002</td>                         <td>7.00                             <button>quantity details</button>                         </td>                         <td>300.00</td>                     </tr>                                        <tr id="row3">                         <td>003</td>                         <td>9.00</td>                         <td>                             500.00                             <button>value details</button>                         </td>                     </tr>                                                        </tr>             </tbody>         </table>     </div>       <div>         <div id="detail-item-view">             <!-- detail -->         </div>         <div id="detail-quantity-view">             <!-- detail -->         </div>               <div id="detail-value-view">             <!-- detail -->         </div>                   </div> </div> 

twitter's bootstrap has solved good. have @ 1 here: getbootstrap.com/javascript/#collapse

i have created little example right here:

* {    box-sizing: border-box;  }  .container {    padding: 25px;    width: 100%;    background-color: #fefefe;    border: 1px dotted #bebebe;  }  .container-row {    background-color: #dedede;  }  .container-row:last-child {    text-align: right;  }  .container-row + .container-row {    margin-top: 15px;  }
<!-- ressources -->  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>  <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">    <!-- example -->  <div class="container">    <div class="container-row">      <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseexample" aria-expanded="false" aria-controls="collapseexample">        button 1      </button>      <div class="collapse" id="collapseexample">        <div class="inner">          lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata          sanctus est lorem ipsum dolor sit amet. lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et          ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet.        </div>      </div>    </div>    <div class="container-row">      <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseexample2" aria-expanded="false" aria-controls="collapseexample">        button 2      </button>      <div class="collapse" id="collapseexample2">        <div class="inner">          lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et ea rebum. stet clita kasd gubergren, no sea takimata          sanctus est lorem ipsum dolor sit amet. lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. @ vero eos et accusam et justo duo dolores et          ea rebum. stet clita kasd gubergren, no sea takimata sanctus est lorem ipsum dolor sit amet.        </div>      </div>    </div>  </div>

i hope looking for.

best regards.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -