css - Chrome bug: lose space between inline elements inside display:table -


it seems there bug in chrome: removes spaces between inline elements inside parent display:table.

<div style="display:table;">    <span>text1</span> <span>text2</span>  </div>

edge/firefox display space without problem. ideas workarounds?

you can use non-breaking space html character entity &nbsp;.

<div style="display:table;">   <span>text1</span>&nbsp;<span>text2</span> </div> 

which space between items on browsers.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -