cinematic_jesi
10-06-2008, 03:31 PM
I'm having issues with css in IE7 using div's and display:inline-block.
Well, my co-worker approached me with a different solution, but didn't know how to go about it.
She thought about using a mod-count? Basically its set up so that because the width of the content area that only 4 will show up because of size. She thought that maybe with a mod count I could do a clear:both div after.
Is there a way to implement it into this code?
<?php do { ?>
<div style="display:inline-block; text-align: center; width: 128px; padding: 3px; border: 1px solid #999999; vertical-align: middle; margin: 6px;"><a href="gallery-photos-large.php?Collection=<?php echo $row_Collections['ID']; ?>&Album=<?php echo $row_Albums['ID']; ?>&Photo=<?php echo $row_Photos['ID'];?>#Gallery"><img style="margin:0px;" src="/media/collections/<?php echo $row_Collections['Folder']; ?>/<?php echo $row_Albums['Folder']; ?>/thumb_<?php echo $row_Photos['Filename']; ?>"></a><br><b><a href="gallery-photos-large.php?Collection=<?php echo $row_Collections['ID']; ?>&Album=<?php echo $row_Albums['ID']; ?>&Photo=<?php echo $row_Photos['ID'];?>#Gallery"><?php echo $row_Photos['Caption']; ?></a></b></div>
<?php } while ($row_Photos = mysql_fetch_assoc($Photos)); ?>
Well, my co-worker approached me with a different solution, but didn't know how to go about it.
She thought about using a mod-count? Basically its set up so that because the width of the content area that only 4 will show up because of size. She thought that maybe with a mod count I could do a clear:both div after.
Is there a way to implement it into this code?
<?php do { ?>
<div style="display:inline-block; text-align: center; width: 128px; padding: 3px; border: 1px solid #999999; vertical-align: middle; margin: 6px;"><a href="gallery-photos-large.php?Collection=<?php echo $row_Collections['ID']; ?>&Album=<?php echo $row_Albums['ID']; ?>&Photo=<?php echo $row_Photos['ID'];?>#Gallery"><img style="margin:0px;" src="/media/collections/<?php echo $row_Collections['Folder']; ?>/<?php echo $row_Albums['Folder']; ?>/thumb_<?php echo $row_Photos['Filename']; ?>"></a><br><b><a href="gallery-photos-large.php?Collection=<?php echo $row_Collections['ID']; ?>&Album=<?php echo $row_Albums['ID']; ?>&Photo=<?php echo $row_Photos['ID'];?>#Gallery"><?php echo $row_Photos['Caption']; ?></a></b></div>
<?php } while ($row_Photos = mysql_fetch_assoc($Photos)); ?>