<?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>Magento Design and Development &#187; css</title>
	<atom:link href="http://inchoo.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://inchoo.net</link>
	<description>Magento Design and Magento Development Professionals - Inchoo</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:30:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to add an external javascript/css file to Magento?</title>
		<link>http://inchoo.net/ecommerce/magento/how-to-add-external-javascript-css-file-to-magento/</link>
		<comments>http://inchoo.net/ecommerce/magento/how-to-add-external-javascript-css-file-to-magento/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 14:56:18 +0000</pubDate>
		<dc:creator>Vedran Subotic</dc:creator>
				<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=8442</guid>
		<description><![CDATA[Have you ever had a need for adding external files into your Magento layout? If you had then you know that you cannot do that from your xml layout files using methods/action: You could do that by hard-coding your &#8220;head.phtml&#8221; &#8230;<p><a href="http://inchoo.net/ecommerce/magento/how-to-add-external-javascript-css-file-to-magento/">Read more</a><p>]]></description>
			<content:encoded><![CDATA[<p>Have you ever had a need for adding external files into your Magento layout?<br />
If you had then you know that you cannot do that from your xml layout files using methods/action:</p>
<pre class="brush: php; title: ; notranslate">
&lt;action method=&quot;addJs&quot;&gt;
&lt;action method=&quot;addCss&quot;&gt;
or
&lt;action method=&quot;addItem&quot;&gt;
</pre>
<p>You could do that by hard-coding your &#8220;head.phtml&#8221; file, but then those external files will be loaded on all Magento pages.<br />
This simple extension will provide you easy access for adding/removing external files such as JavaScript or CSS, libraries from remote servers which you cannot or don&#8217;t want to put on your server.<br />
I called it <strong>Inchoo_Xternal extension</strong>.<br />
<span id="more-8442"></span></p>
<p>How wonderful it would be if you could add or remove external, let&#8217;s say JavaScript libraries:<br />
<strong>prototype: </strong><em>https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js</em><br />
or<br />
<strong>jquery: </strong><em>https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.js</em><br />
from yours <strong>&#8220;layout.xml&#8221;</strong> file and without modifying/hard-coding yours &#8220;head.phtml&#8221;.</p>
<p>Extension is very simple and it exists from only one Block class which extends and rewrites  <strong>&#8220;Mage_Page_Block_Html_Head&#8221;</strong> class and configuration files of modules.<br />
config.xml:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
    &lt;modules&gt;
        &lt;Inchoo_Xternal&gt;
            &lt;version&gt;1.0.0&lt;/version&gt;
        &lt;/Inchoo_Xternal&gt;
    &lt;/modules&gt;
    &lt;global&gt;
        &lt;blocks&gt;
            &lt;inchoo_externals&gt;
                &lt;class&gt;Inchoo_Xternal_Block&lt;/class&gt;
            &lt;/inchoo_externals&gt;
            &lt;page&gt;
                &lt;rewrite&gt;
                    &lt;html_head&gt;Inchoo_Xternal_Block_Html_Head&lt;/html_head&gt;
                &lt;/rewrite&gt;
            &lt;/page&gt;
        &lt;/blocks&gt;
    &lt;/global&gt;
    &lt;frontend&gt;
        &lt;layout&gt;
            &lt;updates&gt;
                &lt;inchoo_xternal module=&quot;Inchoo_Xternal&quot;&gt;
                    &lt;file&gt;inchoo_xternal.xml&lt;/file&gt;
                &lt;/inchoo_xternal&gt;
            &lt;/updates&gt;
        &lt;/layout&gt;
    &lt;/frontend&gt;
&lt;/config&gt;
</pre>
<p>Block class is very simple and it have 2 new methods I have called:<br />
<strong>removeExternalItem</strong> which do the same as <em>removeItem</em><br />
and<br />
<strong>addExternalItem</strong> also do the same as <em>addItem</em><br />
but I have added new types:<br />
<strong><type>external_css</type><br />
<type>external_js</type></strong><br />
which loads external libraries.<br />
Here is example of my layout.xml:</p>
<pre class="brush: php; title: ; notranslate">
&lt;layout version=&quot;0.1.0&quot;&gt;
	&lt;default&gt;
            &lt;reference name=&quot;head&quot;&gt;
                &lt;action method=&quot;addItem&quot;&gt;&lt;type&gt;external_css&lt;/type&gt;&lt;name&gt;http://developer.yahoo.com/yui/build/reset/reset.css&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
                &lt;action method=&quot;addItem&quot;&gt;&lt;type&gt;external_js&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
                &lt;action method=&quot;addExternalItem&quot;&gt;&lt;type&gt;external_js&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/imageloader/imageloader-min.js&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
                &lt;action method=&quot;addExternalItem&quot;&gt;&lt;type&gt;external_css&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/fonts/fonts-min.css&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
            &lt;/reference&gt;
	&lt;/default&gt;
	&lt;catalog_product_view&gt;
		&lt;reference name=&quot;head&quot;&gt;

                &lt;action method=&quot;removeItem&quot;&gt;&lt;type&gt;external_css&lt;/type&gt;&lt;name&gt;http://developer.yahoo.com/yui/build/reset/reset.css&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
                &lt;action method=&quot;removeItem&quot;&gt;&lt;type&gt;external_js&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;

                &lt;action method=&quot;removeExternalItem&quot;&gt;&lt;type&gt;external_js&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/imageloader/imageloader-min.js&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;
                &lt;action method=&quot;removeExternalItem&quot;&gt;&lt;type&gt;external_css&lt;/type&gt;&lt;name&gt;http://yui.yahooapis.com/2.8.2r1/build/fonts/fonts-min.css&lt;/name&gt;&lt;params/&gt;&lt;/action&gt;

            &lt;/reference&gt;
	&lt;/catalog_product_view&gt;
&lt;/layout&gt;
</pre>
<p>As you can see from this example, external libraries are loaded on all the pages but product view page.</p>
<p>Download <a href="http://inchoo.net/wp-content/uploads/2011/02/Inchoo_Xternal.zip" title="Inchoo_Xternal extension">Inchoo_Xternal extension</a> for easily adding external javascript and css files.</p>
<p>Enjoy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/ecommerce/magento/how-to-add-external-javascript-css-file-to-magento/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>PNG transparency fix that works!</title>
		<link>http://inchoo.net/tools-frameworks/png-transparency-fix-that-works/</link>
		<comments>http://inchoo.net/tools-frameworks/png-transparency-fix-that-works/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 10:40:10 +0000</pubDate>
		<dc:creator>Zeljko Prsa</dc:creator>
				<category><![CDATA[Tools & Frameworks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=624</guid>
		<description><![CDATA[If you are trying to fix that nasty PNG issue in IE6 search no more. Go to Drew Diller&#8217;s dillerdesign and behold. A PNG fix for IE6 that actually works on a repeating background image,  go figure Our new team &#8230;<p><a href="http://inchoo.net/tools-frameworks/png-transparency-fix-that-works/">Read more</a><p>]]></description>
			<content:encoded><![CDATA[<p>If you are trying to fix that nasty PNG issue in IE6 search no more. Go to Drew Diller&#8217;s <a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/#how">dillerdesign</a> and behold. <strong>A PNG fix for IE6 that actually works on a repeating background image,  go figure <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong> Our new team member <strong>Ivan Weiler</strong> tried it out yesterday on a “soon to be launched” project and was amazed with the way it works.  <span id="more-624"></span>Here is the excerpt from his site:</p>
<blockquote><p>This is a Javascript library that sandwiches PNG image support into IE6 without much fuss. You can use PNGs as the SRC of an &lt;img /;&gt; element or as a background-image property in CSS. If you attempt the latter, you will find that, unlike with vanilla usage of AlphaImageLoader, background-position and background-repeat work as intended. As a bonus, &#8220;fixed&#8221; elements will respond to a commonly used set of Javascript style assignments, as well as the A:hover pseudo-class.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/tools-frameworks/png-transparency-fix-that-works/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making and breaking the grid with &#8220;960 grid system&#8221;</title>
		<link>http://inchoo.net/tools-frameworks/making-and-breaking-the-grid-with-960-grid-system/</link>
		<comments>http://inchoo.net/tools-frameworks/making-and-breaking-the-grid-with-960-grid-system/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 09:09:50 +0000</pubDate>
		<dc:creator>Tomislav Bilic</dc:creator>
				<category><![CDATA[Tools & Frameworks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://inchoo.net/?p=13</guid>
		<description><![CDATA[There are millions of distinct designs on the web horizon. They all have more or less the styles on their own, like: 3D, cartoon, clean, dark, futuristic, geometric, grunge, minimalistic, retro, corporate, urban, vector, and many more. If we put &#8230;<p><a href="http://inchoo.net/tools-frameworks/making-and-breaking-the-grid-with-960-grid-system/">Read more</a><p>]]></description>
			<content:encoded><![CDATA[<p>There are millions of distinct designs on the web horizon. They all have more or less the styles on their own, like: 3D, cartoon, clean, dark, futuristic, geometric, grunge, minimalistic, retro, corporate, urban, vector, and many more. If we put out design diversity, most of them share the similar structure. They have header, menu, content area, sidebar or sidebars, footer, some secondary space and many more.<br />
<span id="more-13"></span></p>
<p>If you are one of those who developed HTML/CSS for every web from scratch, try to consider <a title="960 Grid System" href="http://960.gs/" target="_blank">960 Grid System</a> and their <a title="960 Grid System demo page" href="http://960.gs/demo.html" target="_blank">demo page</a>.</p>
<blockquote><p>The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.</p></blockquote>
<p>Well, I just see it will work for me perfectly and will save me much time in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://inchoo.net/tools-frameworks/making-and-breaking-the-grid-with-960-grid-system/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

