Skip to content Skip to sidebar Skip to footer

Ie11 Shows Every { Display: Table-cell } Element At A New Line

I have the following HTML (JSFiddle):

Solution 2:

Workaround

add an empty div

<divstyle="width:0;display:table-cell"></div>

Example Codepen http://codepen.io/vinaymavi/pen/JWjxJb

<divstyle="display:table"><divstyle="width:0;display:table-cell"></div><divstyle="display:table-cell;border:1px solid;">
   Cell-1
  </div><divstyle="width:0;display:table-cell"></div><divstyle="display:table-cell;border:1px solid;">
    Cell-2
  </div><divstyle="width:0;display:table-cell"></div><divstyle="display:table-cell;border:1px solid;">
    Cell-3
  </div></div>

For more info please check Microsoft bug https://connect.microsoft.com/IE/feedbackdetail/view/1263383/ie11-shows-every-html-input-element-with-display-table-cell-css-style-at-a-new-line#

Solution 3:

use the 'table' display property and the 'table-row' display property for the wrapping elements, but don't use the 'table-cell' property for the input element. just don't set the display property for those inline elements. and everything will work just fine, even in ie country :) p.s. - wrapping an input element with a div or other element contaminates the semantic structure, it should remain simple and true to meaning as much as possible.

Post a Comment for "Ie11 Shows Every { Display: Table-cell } Element At A New Line"