Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category grid layout problems

Category grid layout problems

Views: 641

Results 1 to 2 of 2
12 Jan 2011, 11:28 PM
#1
tor86 avatar

tor86

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:

2 Feb 2011, 11:10 PM
#2
tor86 avatar

tor86

New Zenner

Join Date:
Sep 2010
Location:
Leamington Spa, UK
Posts:
31
Plugin Contributions:
0

Re: Category grid layout problems

bump

Any ideas?? I'm really clueless about this :(