New Zenner
- Join Date:
- Sep 2010
- Location:
- Leamington Spa, UK
- Posts:
- 31
- Plugin Contributions:
- 0
Category grid layout problems
Hi everyone,
On some of my sub category pages I've used smaller images, which means that there should be more of them along a row. Under maximum values in configuration, I've set it to blank, as I dont want this value affecting these pages, where more categories need to fit across the page.
But for some reason after adding more than 6 sub cats, there's a gap between the last few which I can't figure out how to remove. I've looked for <br>'s in the php but can't find what to change.
http:// notoriousdesign.co.uk /dr.um/index.php?main_page=index&cPath=1_13
(^ remove spaces)
Does anyone know how/where I can fix this?
This is the php for the tpl_columnar_display.php page -
<?php if ($title) { ?> <?php echo $title; ?> <?php } ?> <?php if (is_array($list_box_contents) > 0 ) { for($row=0;$row<sizeof($list_box_contents);$row++) { $params = ""; //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params']; ?> <?php for($col=0;$col<sizeof($list_box_contents[$row]);$col++) { $r_params = ""; if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params']; if (isset($list_box_contents[$row][$col]['text'])) { ?><?php echo '<div' . $r_params . '>' . $list_box_contents[$row][$col]['text'] . '</div>' . "\n"; ?>
<?php
}
}
?>
<?php
}
}
?>
<br class="clearBoth" />
Thanks in advance :smile: