OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Store less than 100% in the center
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
Tata
As an absolutely beginner (none programer) I used only search/replace to get the store centered on the screen if narrower than 100%.
1. in stylesheet.css
CODE
div#body{background-image: url(./images/body_backgorund.jpg);border: 1px solid #00008b;}
div#content{border: 1px solid #00008b;width: 800px;}
2. In index.php and all possible files search for (can be done recursively with many editors):
CODE
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
and replace with:
CODE
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<div align="center" id="body"><div id="content" width="800">
3. In index.php and all possible files search for:
CODE
</body>
</html>
and replace with:
CODE
</div></div>
</body>
</html>
4. In index.php, includes/header.php and footer.php (maybe in other files as well) you may need to set:
CODE
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3" align="center">
to desired width.
Maybe beginner - like me - would find this primitive way usefull.
Jack_mcs
The changes should be in the includes/header.php and includes/footer.php files. Take a look at one of the Center Shops contributions to see how.

Jack
Tata
QUOTE (Jack_mcs @ Jul 21 2007, 02:34 PM) *
The changes should be in the includes/header.php and includes/footer.php files. Take a look at one of the Center Shops contributions to see how.

Jack

Of course, my fault, I was just too lazy to write the lines again, so I have copied the. THX
titanwholesale
I find using the center shop script alot better..


Tim
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.