Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Spacing


akosh

Recommended Posts

That doesn't quite do it. I want to reduce these two gaps:

 

image20qc.jpg

 

 

in the catalog/includes/classes/boxes.php look for

 

 ? ?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);
? ?}
?}

 

these two lines

 

 

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

 

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

CODE]

place a i pixel high line before and after the content in the box. If you remove them it will get rid of the spaces.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...