Forums / Addon Sideboxes / Display anomolies between IE7 and Firefox 2

Display anomolies between IE7 and Firefox 2

Locked

Views: 1,437

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 Nov 2008, 8:57 AM
#1
ajhb avatar

ajhb

New Zenner

Join Date:
Jul 2008
Posts:
59
Plugin Contributions:
0

Display anomolies between IE7 and Firefox 2

Hi,

I've got some problems with how IE and Firefox are displaying my Manufacturer (brand) left sidebox.

In IE there is a margin that shouldn't be there, and in both they have a blank line above, which I also can't fathom. Can anyone help? I've pasted the tpl code below, though perhaps it might be stylesheet related...???

www.chococielo.com

Cheers,
Adam.

<?php
/**
 * Manufacturers Select Sidebox as List Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_manufacturers_select.php 2007-07-08 kuroi
 */
  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  $content .= '<ul>' . "\n";
  for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
    if ($manufacturer_sidebox_array[$i]['text']!=''){
      $content .= '<li><div class="betterMoreinformation"><a class="category-links" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
      $content .= $manufacturer_sidebox_array[$i]['text'];
      $content .= '</a></div></li>' . "\n";
    }
  }
3 Nov 2008, 9:32 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Display anomolies between IE7 and Firefox 2

It's covered in the mod's support thread. For speed, IE and FF have different non-zero, defaults for UL margins. So you need to add > margin: 0;to your > #manufacturerslistContent ulstyles.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

3 Nov 2008, 12:17 PM
#3
ajhb avatar

ajhb

New Zenner

Join Date:
Jul 2008
Posts:
59
Plugin Contributions:
0

Re: Display anomolies between IE7 and Firefox 2

Wow, quick reply Kuroi, many thanks. Works fine - sorry I missed it from the mod forum....

3 Nov 2008, 3:05 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Display anomolies between IE7 and Firefox 2

Moderator's note - thread moved to proper forum.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.