<table cellpadding="0" cellspacing="0" border="0"><tr><td><div id="content_lalala">this content inside the div being inside a table, needs no inline properties and the table is the one expanding to the content of this div =)</div></td></tr></table>
<h2>The Way is using inline-block</h2>
Supporting elements are also added in CSS.
<div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div><div class="floating-box">Floating box</div></div>
body {font-family: sans-serif;}.top {display: -webkit-inline-flex;display: inline-flex;}.top, .bottom {background-color: #3F3;border: 2px solid #FA6;}/* bottomwrapper will take the rest of the width */.bottomwrapper {display: -webkit-flex;display: flex;}table {border-collapse: collapse;}table, th, td {width: 280px;border: 1px solid #666;}th {background-color: #282;color: #FFF;}td {color: #444;}th, td {padding: 0 4px 0 4px;}
Is this<div class="top"><table><tr><th>OS</th><th>Version</th></tr><tr><td>OpenBSD</td><td>5.7</td></tr><tr><td>Windows</td><td>Please upgrade to 10!</td></tr></table></div>what you are looking for?<br>Or may be...<div class="bottomwrapper"><div class="bottom"><table><tr><th>OS</th><th>Version</th></tr><tr><td>OpenBSD</td><td>5.7</td></tr><tr><td>Windows</td><td>Please upgrade to 10!</td></tr></table></div></div>this is what you are looking for.
<div><table><tr><td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices feugiat massa sed laoreet. Maecenas et magna egestas, facilisis purus quis, vestibulum nibh.</td><td>Nunc auctor aliquam est ac viverra. Sed enim nisi, feugiat sed accumsan eu, convallis eget felis. Pellentesque consequat eu leo nec pharetra. Aenean interdum enim dapibus diam.</td><td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices feugiat massa sed laoreet. Maecenas et magna egestas, facilisis purus quis, vestibulum nibh.</td></tr></table></div>