
Originally Posted by
SComm
I don't see those lines of code in the link you posted?
Sorry, didn't mean to confuse the issue...I was just trying to shorten up the code and make it generic to give an example. Here's the actual code:
Code:
<div id="main">
<div id="side">
<div id="thumbs">
<h1>custom</h1>
<?php do { ?><?php
echo "<a href='photodetail.php?id=" . $row_custom['custom_id'] . "&cat=cust'> <img src='images/photos/thumbs/". $row_custom['thumbnail'] . "' /></a>" ; ?>
<?php } while ($row_custom = mysql_fetch_assoc($custom)); ?>
</div>
</div>
</div>
and when I take out the second nested DIV "thumbs" it seems to work:
Code:
<div id="main">
<div id="side">
<h1>custom</h1>
<?php do { ?><?php
echo "<a href='photodetail.php?id=" . $row_custom['custom_id'] . "&cat=cust'> <img src='images/photos/thumbs/". $row_custom['thumbnail'] . "' /></a>" ; ?>
<?php } while ($row_custom = mysql_fetch_assoc($custom)); ?>
</div>
</div>
Might it be because thumbs is only 550 px wide and the two DIVs above it ("main" and "side") are 735px wide?
Bookmarks