html - Resize of table-cell to zero -


can please this. there's solution without javascript , @media.

image better understanding problem

all details in it, there's no of it. main problem right , left columns resize 0 window/resolution changes, i'm getting hard time it

.table {     min-width: 399px;     width: 100%;     max-width: 100%;     margin: 0 auto;     display: table; } .table-cell-left {     min-width: 0px;     max-width: 9999px;     width: 49%;     display: table-cell;     background-color:#933333;     color: #ffffff;     text-align: center;     vertical-align: middle;     padding: 0 0 0 0; } .table-cell-right {     min-width: 0px;     max-width: 9999px;     width: 49%;     display: table-cell;     background-color:#339933;     color: #ffffff;     text-align: center;     vertical-align: middle; } .table-cell-middle {     min-width: 399px;     max-width: 999px;     width: 2%;     display: table-cell;     text-align: center;     vertical-align: middle;     background-color:#333393;     color: #ffffff; }  <div class="table">     <div class="table-cell-left">         left     </div>     <div class="table-cell-middle">         middle     </div>     <div class="table-cell-right">         right     </div> </div> 

jsfiddle example thanks!

.table {     min-width: 399px;     width: 100%;     max-width: 100%;     margin: 0 auto;     display: table; } .table-cell-left {     min-width: 0px;     max-width: 9999px;     width: 49%;        //remove     display: table-cell;     background-color:#933333;     color: #ffffff;     text-align: center;     vertical-align: middle;     padding: 0 0 0 0; } .table-cell-right {     min-width: 0px;     max-width: 9999px;     width: 49%;         // remove     display: table-cell;     background-color:#339933;     color: #ffffff;     text-align: center;     vertical-align: middle; } .table-cell-middle {     min-width: 399px;     max-width: 999px;     width: 2%;         // remove     display: table-cell;     text-align: center;     vertical-align: middle;     background-color:#333393;     color: #ffffff; } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -