osc-user Posted April 13, 2004 Posted April 13, 2004 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
zzfritz Posted April 13, 2004 Posted April 13, 2004 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 //-->.
AlanR Posted April 13, 2004 Posted April 13, 2004 http://www.oscommerce.com/forums/index.php?showtopic=82721 http://www.oscommerce.com/community/contributions,1665 http://www.oscommerce.com/forums/index.php?showtopic=87523 Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
osc-user Posted April 13, 2004 Author Posted April 13, 2004 Looks like the solution won't be particularly simple but hopefully I can get it to work. Thanks for the help you guys!
Almirena Posted April 13, 2004 Posted April 13, 2004 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.
osc-user Posted April 13, 2004 Author Posted April 13, 2004 so I sorted through some of the discussions (and there seems to be a lot of them). I think my solution lies in this contribution: contribution :)
Guest Posted March 10, 2005 Posted March 10, 2005 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.