Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Line break between category heading and first category


Guest

Recommended Posts

Posted

Hi

 

I notice that there is a line break between the category heading and the first category in the list (if you do Ctrl A in browser).

 

Is there any way to remove this line break so that the gap is not so big?

 

Thanks

 

W

Posted

I have isolated the code to catalog/includes/classes/boxes

 

   function infoBoxContents($contents) {
  $this->table_cellpadding = '3';
  $this->table_parameters = 'class="infoBoxContents"';
  $info_box_contents = array();
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
	$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
									   'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
									   'params' => 'class="boxText"',
									   'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
  }
  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  return $this->tableBox($info_box_contents);
}
 }

 

But if i change $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); to show 0% or '0' or '' the page either fails to load or still has a line break.

 

W

 

Hi

 

I notice that there is a line break between the category heading and the first category in the list (if you do Ctrl A in browser).

 

Is there any way to remove this line break so that the gap is not so big?

 

Thanks

 

W

Posted

Got it, just remove the line in full

 

	  $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

 

Does not make too much difference but I guess it is only 1px tall :D

 

W

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...