Forum Moderators: not2easy
<?php
$arr = array(
'Text',
'More Text',
'Even More<br>Text',
(20 or so more)...
);
echo <<<EOF
<table>
<tr valign="center">
<td>$arr[0]</td>
<td>$arr[1]</td>
<td>$arr[2]</td>
...
</tr>
<tr>
<td><img src="foo.jpg"></td>
<td><img src="bar.jpg"></td>
<td><img src="meh.jpg"></td>
...
</tr>
</table>
EOF;
?> <div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[0]
</p>
<div>
<img src="foo.jpg">
</div>
</div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[1]
</p>
<div>
<img src="bar.jpg">
</div>
</div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[2]
</p>
<div>
<img src="meh.jpg">
</div>
</div>
</div> <div class="row">
<div class="cell">
<p>$arr[0]</p>
<div>
<img src="IMAGE" alt="ALT">
</div>
</div>
<div class="cell">
<p>$arr[1]</p>
<div>
<img src="IMAGE" alt="ALT">
</div>
</div>
<div class="cell">
<p>$arr[2]</p>
</div>
</div> <div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[0]
</p>
<div>
<img src="foo.jpg">
</div>
</div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[1]
</p>
<div>
<img src="bar.jpg">
</div>
</div>
<div style="float: left; width: 100px; text-align: center">
<p>
$arr[2]
</p>
<div>
<img src="meh.jpg">
</div>
</div>
</div>
<script>
var maxHeight = 0;
$('p').each(function() {
if ($(this).height() > maxHeight)
maxHeight = $(this).height();
});
$('p').height(maxHeight);
</script>