tets Posted February 29, 2008 Posted February 29, 2008 Hey all Is there any easy way to get a fixed centered width over all pages for STS? //tets Quote
Eighteen48 Posted February 29, 2008 Posted February 29, 2008 Yes make the templates that way and your good to go. The site will look however you would want it, by creating template files or just 1 template file for the whole site. It helps to know html or have an html editor, preferably a WYSIWYG one. Quote Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0
sitefire Posted May 7, 2008 Posted May 7, 2008 Heres a quick way to get it done, also allows you to set the size. catalog/includes/sts_templates/test(or Full which ever you're using)/sts_template.html Find: </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> Add just below, placement is not critical just needs to be in the body. <div id="wrapper"> NOTE: colors and sizes below are for my site you can tweek them how you want. catalog/stylesheet.css Find: BODY { text-align: center; background: #000000; color: #ffffff; margin: 0px; } Add just below: placement is not critical div#wrapper { position:relative; margin-left:auto; margin-right:auto; width:1004px; background-color: #000000; } Quote
Moparcj5 Posted July 3, 2008 Posted July 3, 2008 Heres a quick way to get it done, also allows you to set the size. catalog/includes/sts_templates/test(or Full which ever you're using)/sts_template.html Find: </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> Add just below, placement is not critical just needs to be in the body. <div id="wrapper"> NOTE: colors and sizes below are for my site you can tweek them how you want. catalog/stylesheet.css Find: BODY { text-align: center; background: #000000; color: #ffffff; margin: 0px; } Add just below: placement is not critical div#wrapper { position:relative; margin-left:auto; margin-right:auto; width:1004px; background-color: #000000; } Hi Sitefire I tried this code. This works on firefox prior to version 3, but does not work on New version of Firefox or internet explorer. Does anybody have any suggestions on how to get this code to work with other browsers? This is a great idea to use with sts templates. Please Help I have the following Oscommerce rc2 STS 4.5.8 Header Tags Seo lastest SEO assistant lastest Thanks Joey Quote I have installed: Oscommerce version 2.2rc2a, STS version 4.5.8, Header Tags SEO version 3.1.5, SEO Assistant version 2.1 Thanks Joey
umbra Posted August 9, 2009 Posted August 9, 2009 Is there a solution for the solution not working in newer FF and IE ? Quote
spooks Posted August 9, 2009 Posted August 9, 2009 Is there a solution for the solution not working in newer FF and IE ? its failing as u open div, but fail to close, I dod'nt know sts, but i believe this method should work with it. Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
umbra Posted August 9, 2009 Posted August 9, 2009 Hi Sitefire I tried this code. This works on firefox prior to version 3, but does not work on New version of Firefox or internet explorer. Does anybody have any suggestions on how to get this code to work with other browsers? This is a great idea to use with sts templates. Please Help I have the following Oscommerce rc2 STS 4.5.8 Header Tags Seo lastest SEO assistant lastest Thanks Joey In for example index.php.html On the lines that say width="100%" ' REPLACE THAT WITH width="800px" AND ADD align="center" To the same lines hey presto fixed widht and centered :-) Quote
umbra Posted August 9, 2009 Posted August 9, 2009 its failing as u open div, but fail to close, I dod'nt know sts, but i believe this method should work with it. This is how i made it so it works :-) In for example index.php.html On the lines that say width="100%" ' REPLACE THAT WITH width="800px" AND ADD align="center" To the same lines hey presto fixed widht and centered :-) Quote
bkellum Posted August 10, 2009 Posted August 10, 2009 This is how i made it so it works :-) In for example index.php.html On the lines that say width="100%" ' REPLACE THAT WITH width="800px" AND ADD align="center" To the same lines hey presto fixed widht and centered :-) Hmm....why not just ask in the STS Support Thread or better yet, do a search in the STS Support thread and find the answer to this question that has been asked too many times already. Link in my signature below as well as listed in the STS User Manual. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.