We would like to know how to float table along with div.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!--from ww w . j a v a 2 s . co m-->
float: left;
}
table {
float: left;
}
</style>
</head>
<body>
<div>Text Text</div>
<table border=1>
<tr>
<td>My table content</td>
<td>My table content</td>
<td>My table content</td>
</tr>
</table>
</body>
</html>
The code above is rendered as follows: