How to get an elastic table next to the picture
This is what I want: http://img571.imageshack.us/img571/4618/myimage.png
This is the best I could think of:
CSS
img
{
background: red;
float: left;
}
table
{
background: yellow;
width: 90%;
}
Html
<img src="image.jpg" width="40" height="40" />
<table>
<tr><td>Table</td></tr>
</table>
There is a problem with this approach. If you resize the browser window, at some point the table will jump below the image: click to view a demo .
What's the best way to achieve this layout?
+2
a source to share
2 answers