<html> <body><p style="margin:0;display:inline-block;border:2px solid blue;">This text<br>This text</p> <p style="margin: 0; border: 2px solid blue; display:inline-block"> <span style="display:block">should all be<br>should also all be</span></p> <table style="margin: 0; display: inline-table; border:2px solid blue" cellpadding=0 cellspacing=0> <tr><td>on the <tr><td>on the </table> <table style="margin: 0; display: inline-table; border:2px solid blue" cellpadding=0 cellspacing=0> <tr><td>same line. <tr><td>same line. </table> </body> </html>