Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Width of All Pages via Oscommerce


Recommended Posts

Posted

Is there a quick way to make the sites main pages like index, products etc. all wide

 

Currently, I am using Max 2 from AABox which comes with a centered template.

 

You can see this in at action at Website in Progress

 

Is there a quick way to change settings so the site utilizes all the space or will I need to rebuild the pages? Surely there is an easy setting that I have overlooked that can change the width to adjust to different users screen size?

Posted

Sorry I've never done more than look briefly at that build of osc but if I recall it use a template system.

 

If this is the case you should be able to modify the sizing in the template stucture. Most of them are in catalog/templates/mainpage.tpl.php or similar.

 

You should be able to find the first <table> after the <body> and see it is set to a specific size such as for example:

<table border="0" width="750" cellspacing="0" cellpadding="2">

 

if you find this true you can change it to something like this:

<table border="0" width="100%" cellspacing="0" cellpadding="2">

 

according to the template syatem contributions you can "alter the look of your whole site by changeing one page".

 

Good Luck,

 

Tim Fortune

How do you know when you know what you want to do for the rest of your life?

Posted

I viewed your source and see this:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td height="5"> </td>

</tr>

</table>

<!-- All TS references added by TemplateShopper.com November 2003

TS: 800 pixel centered table for all pages of store -->

<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td>

<!-- TS Remove 3 lines above and three closing tags at end to have 100% width store but watch graphics! Also remove center table -->

 

Note the last line. Just do a search in the template file for this text:

 

<!-- TS Remove 3 lines above

 

and you should be able to resolve your problem.

 

Tim Fortune

How do you know when you know what you want to do for the rest of your life?

Archived

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

×
×
  • Create New...