css - IE gaps when rendering html table cell with radius border nested in other table -


in ie (version 11 , older versions), small vertical and/or horizontal gaps (or lines) in border when using radius on td in nested table. same problem occurs if used radius on div nested in table. if use zoom function in ie, lines appear or display depending on zoom level. there no problem in firefox nor chrome. , using nesting, because need background color near radius different background color of enclosing table.

here screenshot of white line error:

[![enter image description here][1]][1]

here sample code:

<table style="width:50%;" cellspacing="0">     <tr>         <td style="background-color:#292f6c;">             sadasd         </td>     </tr>     <tr> <td style="background-color: white;padding: 0px;border:0px;">     <table style="border-spacing:0px;width:100%;height: 10px;">         <tr>             <td style="background-color:#292f6c;-webkit-border-bottom-left-radius: 11px;-moz-border-radius-bottomleft: 11px;border-bottom-left-radius: 11px;"></td>         </tr>     </table> </td>         </tr>     </table> 

https://jsfiddle.net/f7e6qo1m/

any suggestions?

figured out adding 1px border on square sides seems fix problem.

https://jsfiddle.net/f7e6qo1m/1/

    <table style="width:50%;" cellspacing="0">         <tr>             <td style="background-color:#292f6c;">                 sadasd             </td>         </tr>         <tr> <td style="background-color: white;padding: 0px;border:0px;">     <table style="border-spacing:0px;width:100%;height: 10px;">         <tr>             <td style="background-color:#292f6c;-webkit-border-bottom-left-radius: 11px;-moz-border-radius-bottomleft: 11px;border-bottom-left-radius: 11px;border-top: 1px solid #292f6c;border-right: 1px solid #292f6c;"></td>         </tr>     </table> </td>             </tr>         </table> 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -