Hello,
For all my websites so far I have used table layouts but now I wish to try and use a pure CSS layout. But I am really struggling!
How can I emulate the following in CSS:
<table>
<tr>
<td>Some Content 1</td>
<td>Some Content 2</td>
</tr>
</table>
Now lets assume that "Some Content 1" and "Some Content 2" are instead <img>
tags. Then the resulting output is two images side by side with centred vertical justification. The size of the two cells in the table are the size of the images plus some padding.
So the table is automatically sized to fit the images or whatever content is inside the cells.
But how do I do this in CSS, it is driving me mad! I am nearly at the point of giving up and just using a table layout, and why not, it is so simple.
Any suggestions most gratefully received.
Thanks,
AJ