I am trying to create newspaper columns on my page. However, my page contains tables, and in IE, Chrome, Safari and Opera the table is split into two different columns: this is not the behavior I want. Where there is a table, I would like to have it completely within the same column. Here is the code:
.newspaper { -webkit-column-count: 2; -moz-column-count: 2; column-count: 2; -webkit-column-gap: 5px; -moz-column-gap: 5px; column-gap: 5px; }
<div class="newspaper"> <table> <tr><td>Table Row 1</td></tr> <tr><td>Table Row 2</td></tr> <tr><td>Table Row 3</td></tr> <tr><td>Table Row 4</td></tr> </table> <p>Paragraph</p> </div>
An easy way to see the problem and use it is to use Chrome and go to http://www.w3schools.com/css/tryit.asp?filename=trycss3_column-gap and paste the code into their example with mine. If you try Firefox, you will see that the table remains completely in the left column.
source share