Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fixed width webpages


osc-user

Recommended Posts

Posted

I know this is probably something that's been answered many times before, but can somone tell me how I can set the width of my pages to be fixed? I'm using the default osCommerce template with a custom header at the top. Currently it's adjusting to the browser window size and I want to fix it to the length of my header.

 

I appreciate any help!

 

osc-user

Posted

The pages of osCommerce are designed to fill the browser window by having width="100%" in the table tags, and the good news is that you can change those to be fixed width.

 

The bad news is that there are lots of them.

 

For starters, there are three in includes/header.php and three in includes/footer.php. Then, change the one at about line 49 of index.php, and the one at about line 39 of product_info.php.

 

Keep testing and you will find more (there may even be a list somewhere in the forum). Look for the table tag immediately after the comment line <!-- body //-->.

Posted

Looks like the solution won't be particularly simple but hopefully I can get it to work. Thanks for the help you guys!

Posted

Ah... this was something I was thinking about...

 

Thank you - another question answered before I had got around to checking or asking. Maybe it's bad for me... lazy mind...

 

Ah well.

  • 10 months later...
Posted

I've tried the contribs and the css and nothing seems to change the width of the center. I've got to have something that's overriding these changes but don't know where to look. Any suggestions?

 

P.S. if anyone is willing to have a [careful] look I will give you access.

Archived

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

×
×
  • Create New...