<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>multimixer &#187; 960gs</title>
	<atom:link href="http://multimixer.gr/tag/960gs/feed/" rel="self" type="application/rss+xml" />
	<link>http://multimixer.gr</link>
	<description>lets talk about osCommerce</description>
	<lastBuildDate>Fri, 19 Nov 2021 08:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to change the width of your osCommerce store keeping the 960 grid system</title>
		<link>http://multimixer.gr/17/01/2011/change-the-width-of-your-oscommerce-store/</link>
		<comments>http://multimixer.gr/17/01/2011/change-the-width-of-your-oscommerce-store/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 16:30:29 +0000</pubDate>
		<dc:creator>multimixer</dc:creator>
				<category><![CDATA[learn]]></category>
		<category><![CDATA[960gs]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[osCommerce v2.3]]></category>

		<guid isPermaLink="false">http://multimixer.gr/?p=706</guid>
		<description><![CDATA[osCommerce, in it's latest version 2.3.1, has a fixed width of 960 pixels. Do you need to change this? You can have any store width and change it any time. Read here how.]]></description>
			<content:encoded><![CDATA[<p>We all know that osCommerce, in it&#8217;s latest version 2.3.1, has a fixed width of 960 pixels. How it comes? Because osCommerce use the 960 grid system that has a width, as it&#8217;s name say, of 960 pixels.</p>
<p>Now it&#8217;s of course not an obligation for all osCommerce store owners to have a store of that width. There is no higher power pushing anyone to do so, it all comes from the 960gs, and the 960 grid system is a stylesheet, not more, not less.</p>
<p>The question now is, how to do if you want an other store width, is that possible with the 960 grid system? The answer is surprisingly easy: Yes it&#8217;s possible to have any store width, without having to alter any file, without any css knowledge, without having to remove the 960 grid system.</p>
<p>So, lets start creating a css file for a store width of 1032 pixels.</p>
<h3>Step 1: create a custom css file online</h3>
<p>First thing to do is to go to the <a href="http://960.gs/" target="_blank">960 grid system</a> website and click on “custom css generator” on the left.</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/01/960_web_site.png"><img class="aligncenter size-large wp-image-707" title="The website of the 960gs grid system that is used in osCommerce 2.3.1" src="http://multimixer.gr/wp-content/uploads/2011/01/960_web_site-540x274.png" alt="The website of the 960gs grid system that is used in osCommerce 2.3.1" width="540" height="274" /></a></p>
<p>You will be transfered to a <a href="http://www.spry-soft.com/grids/" target="_blank">custom css generator</a>, that you can access directly too of course. You’ll have in front of you following screen:</p>
<p style="text-align: center;"><a href="http://multimixer.gr/wp-content/uploads/2011/01/css_generator.png"><img class="size-large wp-image-708 aligncenter" title="online css generator for the 960gs grid system" src="http://multimixer.gr/wp-content/uploads/2011/01/css_generator-540x357.png" alt="online css generator for the 960gs grid system" width="540" height="357" /></a></p>
<p>Here you will need to change the  ”number of columns” to be 24 and the “gutter width” to be 10. This will make the resulting css file to be conform with the rest of your store’s setup. What you can alter to any number is the “column width”. Setting this to number “30″ will result to the default 960 pixels width:</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/01/css_generator_960.png"><img class="aligncenter size-large wp-image-710" title="The settings for the 960 pixels page width as it is used in osCommerce" src="http://multimixer.gr/wp-content/uploads/2011/01/css_generator_960-540x357.png" alt="The settings for the 960 pixels page width as it is used in osCommerce" width="540" height="357" /></a></p>
<p>You don’t need this of course, since it is already included in osCommerce. The settings for a 1032 pixels wide website for example are like this: 33 column width, 24 columns, 10 gutter</p>
<p><a href="http://multimixer.gr/wp-content/uploads/2011/01/css_generator_1032.png"><img class="aligncenter size-large wp-image-711" title="The settings for a 1032 pixels wide osCommerce website" src="http://multimixer.gr/wp-content/uploads/2011/01/css_generator_1032-540x357.png" alt="The settings for a 1032 pixels wide osCommerce website" width="540" height="357" /></a></p>
<p>If this is the page width you need, then press on “download css file”. You will get a copy of the new created custom css to your screen. Save this file to your computer and name it by the width that you selected, in our example the filename would be 1032_24_col.css</p>
<h3>Step 2: upload the new file to your server</h3>
<p>Use your favorite FTP program to upload the file “1032_24_col.css” to following location</p>
<blockquote style="text-align: center;"><p><strong>[catalog]/ext/960gs/</strong></p></blockquote>
<h3>Step 3:  Activate the new page width</h3>
<p>Last step is to &#8220;tell&#8221; to our store to use the new stylesheet that will set the new width. To do this we need to go to file [catalog]/includes/template_top.php and change the path to the css file. This path is set in following line</p>
<pre class="brush:xml; first-line:47">&lt;link rel="stylesheet" type="text/css" href="ext/960gs/&lt;?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?&gt;960_24_col.css" /&gt;</pre>
<p>This we change to</p>
<pre class="brush:xml; first-line:47">&lt;link rel="stylesheet" type="text/css" href="ext/960gs/&lt;?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?&gt;1032_24_col.css" /&gt;</pre>
<p>You can do this of course for any width you like, I would say, the only limitation is the &#8220;common sense&#8221;: You have to consider your visitors most common screen sizes and your needs of display, for example for very large images.<br />
Here are some screenshots of different store widths<br />
<a href="http://multimixer.gr/wp-content/uploads/2011/01/width_840.png"><img class="aligncenter size-large wp-image-725" title="osCommerce store 840 pixels wide" src="http://multimixer.gr/wp-content/uploads/2011/01/width_840-540x671.png" alt="osCommerce store 840 pixels wide" width="540" height="671" /></a><br />
<a href="http://multimixer.gr/wp-content/uploads/2011/01/width_1128.png"><img class="aligncenter size-large wp-image-726" title="osCommerce store 1128 pixels wide" src="http://multimixer.gr/wp-content/uploads/2011/01/width_1128-540x689.png" alt="osCommerce store 1128 pixels wide" width="540" height="689" /></a><br />
In case you use mini template system, things are more easy, since you don&#8217;t need to modify any file. You can either use one of the predefined widths or simply create your own. Mini template system users, please read here about <a href="http://minitemplatesystem.com/usage/do-it-your-self/create-a-custom-page-width-for-your-store/" target="_blank">Create a custom page width for your store</a></p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://multimixer.gr/17/01/2011/change-the-width-of-your-oscommerce-store/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>
