Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resize box column left....where?


deltabiri

Recommended Posts

thanks for link steve.

 

your how to set values?

my code template_top

 if (!$oscTemplate->hasBlocks('boxes_column_left')) {
   $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth(300) + $oscTemplate->getGridColumnWidth(300));
 }

and template_bottom

<div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(300); ?> pull_<?php echo $oscTemplate->getGridContentWidth(300); ?>">
 <?php echo $oscTemplate->getBlocks('boxes_column_left'); ?>
</div>

insert 300 does not work...where am I wrong?

thanks

Link to comment
Share on other sites

Alter the width using this code.

 

var $_grid_container_width = 24;

var $_grid_content_width = 16;

var $_grid_column_width = 4;

 

24 is the overal width.

16 is the centre section

4 is the width of both column 4 x 2 =8

 

16+8=24

 

To alter the width change the 4 to a 5 and reduce the 16 to 14. 5+5+14=24.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

1 tested

class oscTemplate {
   var $_title;
   var $_blocks = array();
   var $_grid_container_width = 28;
   var $_grid_content_width = 16;
   var $_grid_column_width = 6;

 

it ruins the whole site, moves all column, header, footer in crash :(

 

2 tested

#columnLeft { width: 180px; 
 padding-top: 5px; 
}

column does not appear :(

 

why?

Link to comment
Share on other sites

2.3.1 uses the 960 grid system which is 24 columns wide. You have to keep to a total of 24.

 

I have just tried on my test store and altering the settings to

 

var $_grid_container_width = 24;

var $_grid_content_width = 14;

var $_grid_column_width = 5;

 

makes both left and right colums wider. So does

 

var $_grid_container_width = 24;

var $_grid_content_width = 12;

var $_grid_column_width = 6;

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...