Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Centering OSC


mrkevinsir

Recommended Posts

All of your OSC pages are enclosed in a <table> tag at the top level, often just under the <body> tag. Change that top level <table> tag to a specific width and use align="center", so, for example ..

<table width="750" align="center"> should do the trick. Add whatever you want for cellpadding, cellspacing etc. values.

 

Note that this is required only on the top level table tag, and it should be done for all the files in the top (catalog) directory. It does not need to be done in any of the other files in lower directories.

 

Hope this helps.

Artisans of the Ironwork Guild

Link to comment
Share on other sites

All of your OSC pages are enclosed in a <table> tag at the top level, often just under the <body> tag.  Change that top level <table> tag to a specific width and use align="center", so, for example ..

<table width="750" align="center"> should do the trick.  Add whatever you want for cellpadding, cellspacing etc. values.

 

Note that this is required only on the top level table tag, and it should be done for all the files in the top (catalog) directory.  It does not need to be done in any of the other files in lower directories.

 

Hope this helps.

 

I take the above suggestion back. I've done a lot of customizing of my OSC site, and all my heading.php files are enclosed in the top tables of the main pages under the public_html (catalog) directory. The Center Site contribution is more appropriate for standard OSC sites, since it modifies the header.php and footer.php files to do the job, and that takes care of centering the standard OSC layout. --- Sorry for the confusion. I forgot what I had changed.

Artisans of the Ironwork Guild

Link to comment
Share on other sites

<table width="750" align="center"> should do the trick.  Add whatever you want for cellpadding, cellspacing etc. values.

.......................................................

and it should be done for all the files in the top (catalog) directory.

If there are many files involved, it might be easyer to use the stylesheet to set the properties of these tables. Then you have to edit the files only once. And if you want to change anything, you only need to edit one or two lines in the stylesheet.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...