<?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/"
	>

<channel>
	<title>Kaizeku Ban &#187; Internet Browser</title>
	<atom:link href="http://blog.kaizeku.com/taxonomy/internet-browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kaizeku.com</link>
	<description>So many evil plans, so little time...</description>
	<pubDate>Sat, 13 Dec 2008 17:01:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<meta xmlns="http://pipes.yahoo.com" name="pipes" content="noprocess" />
	<image>
		<link>http://blog.kaizeku.com/</link>
		<url>http://i.istalker.net/1.6.2/stamp.png</url>
		<title>Kaizeku Ban</title>
	</image>
		<item>
		<title>WPI Cross Browser Support</title>
		<link>http://blog.kaizeku.com/wordpress/wpi-cross-browser-support/</link>
		<comments>http://blog.kaizeku.com/wordpress/wpi-cross-browser-support/#comments</comments>
		<pubDate>Mon, 19 May 2008 10:48:51 +0000</pubDate>
		<dc:creator>Avice</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[wpistalker]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[hook]]></category>

		<category><![CDATA[Internet Browser]]></category>

		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://blog.kaizeku.com/?p=150</guid>
		<description><![CDATA[Wp-iStalker Cross browser CSS &#38; Scripts Guide.]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.kaizeku.com/wp-content/uploads/2008/05/istalker-css-autoload1.png" alt="istalker-css-autoload1" title="istalker-css-autoload1" width="128" height="128" class="alignleft size-full wp-image-152 fl" longdesc="http://blog.kaizeku.com/wordpress/wpi-cross-browser-supportwpi-cross-browser-support/"/> If you are frustrated that certain <abbr title="Wp-iStalker">WPI</abbr> version <small>(i.e., public &#038; beta)</small> doesn&#8217;t support MSIE. I intentionally did that (just) to annoyed Microhoo and the rest of MSIE users (that is 70% of internet population). </p>
<h2>Cross Browser Autoload</h2>
<p>Before you stalked me, WPI WordPress theme has a build in function for auto-loading cross browser stylesheet and script files. This function is available since our first release. </p>
<h5>How to load Browser specific CSS &#038; Scripts?</h5>
<p>We asume you are using the crappy broken MSIE 6 browser running on Windows XP.<br />
When WPI theme load it will look for specific stylesheet &#038; script files like below list. </p>
<ul>
<li>stylesheet &rarr; <tt>/themes/wp-istalker/css/ &darr;</tt>
<ol>
<li>ie.css</li>
<li>ie-6.css</li>
<li>winxp.css</li>
</ol>
</li>
<li>javascript &rarr; <tt>/themes/wp-istalker/scripts/ &darr;</tt>
<ol>
<li>ie.js</li>
<li>ie-6.js</li>
<li>winxp.js</li>
</ol>
</li>
</ul>
<p>If any of the files exists, It will queue the specific files and append it to the master file then proceed with minified &rarr; crunch &rarr; combine &rarr; gzip or deflate (if the ua allowed it) and send it to the browser as a single file. Walla<br />
<span id="more-150"></span><br />
Depend on the user <abbr title="User Agent">UA</abbr> the complete files will be cached inside the the following cache directory.</p>
<ul>
<li>/themes/wp-istalker/cache/css/*.css.compression-type</li>
<li>/themes/wp-istalker/cache/scripts/*.js.compression-type</li>
</ul>
<p>the combine files can be found at </p>
<ul>
<li>/themes/wp-istalker/css/combine-md5hash.css</li>
<li>/themes/wp-istalker/scripts/combine-md5hash.js</li>
</ul>
<h5>how to check for browser versions number?</h5>
<p>Its a bit tricky to know the correct name and version numbers, here&#8217;s how I do it. </p>
<p>Go to your blog frontpage and look inside the source code body-tag. On the <em>&#8220;class&#8221;</em> attribute you can find something similar like the below example. &darr;</p>
<pre class="smallbox">&#60;body id&#61;&#34;wpi&#45;blog&#45;kaizeku&#45;com&#34; class&#61;&#34;wp&#45;home firefox firefox&#45;20 winxp &#45;foaf&#45;Document&#34;&#62;</pre>
<p>If you have <strong>firebug </strong> &rarr; <tt>console.log($(&#8217;body&#8217;).attr(&#8217;class&#8217;) );</tt></p>
<p>code break:</p>
<ol>
<li><strong>wp-home</strong> &rarr; <a href="#section" title="Section References">Section </a>, Refer <a href="http://codex.wordpress.org/Template_Hierarchy#Visual_Overview" title="Wordpress Template Hierarchy Visual Overview" class="ext">WordPress Template Hierarchy</a></li>
<li><strong>firefox</strong> &rarr; Browser name</li>
<li><strong>firefox-2</strong> &rarr; Browser name &amp; Major Version numbers.</li>
<li><strong>winxp </strong> &rarr; OS platform</li>
</ol>
<p class="sticky">for variant of gecko base engine (i.e., prism, flock, seamonkey,mozilla suite) it will just show it as &#8220;mozilla mozilla-19 winxp&#8221; or something similar.</p>
<p>just to see how clever this go, you can used this wonderful root body browser-class-name CSS selector to create different CSS styling/tweak for cross browser like so &darr;</p>
<pre class="prebox">
body.safari div.hentry{
 position:relative; top: -10px; min-height:400px
}
body.ie-6 div.hentry{
 height:auto;height:450px
}
body.opera div.hentry{
 min-height: 500px
}
</pre>
<h2>The CSS files Ordering</h2>
<p>Inheritance is very important factor in CSS. Below is list of files sort by number starting from top to bottom. </p>
<pre class="smallbox">
&#64;import url&#40;&#39;&#47;wp&#45;content&#47;themes&#47;wp&#45;istalker&#47;icecream&#46;css&#44;auth&#46;css&#44;single&#46;css&#44;lang&#46;css&#44;firefox&#46;css&#44;winxp&#46;css&#39;&#41;&#59;
</pre>
<ol>
<li><strong>icecream.css</strong> &rarr; global css (style.css) load at all page include in this file is our blueprint.css (blueprint framework css), image.css.
<p class="sticky">I prefer delicious filename more than generic :) .</p>
</li>
<li><strong>auth.css</strong> &rarr; this file will be loaded if you are registered user.</li>
<li><strong>single.css</strong> &rarr; section files
<p class="sticky"><strong id="section">sections:</strong> home.css, single.css, attachment.css, page.css, search.css, archive.css, category.css, tag.css, year.css, month.css, day.css, 404.css etc.. </p>
</li>
<li><strong>plugins &#038; widgets</strong> &rarr; supported plugins and widgets file will be append here (i.e., wp-pagenavi, openid, global translator, wpseo, wpstats)</li>
<li><strong>firefox</strong> &rarr; browser name specific stylesheets</li>
<li><strong>firefox-2</strong> &rarr; it get more specific. </li>
<li><strong>platform</strong> &rarr; os/platform base stylesheets. good for declaring supporting fonts class </li>
<li><strong>extra_css</strong> - filter hook wpi_css_import_array </li>
</ol>
<h5>Custom Hook</h5>
<p>Hook for each of the import files &rarr; wpi_css_import_<strong>$int </strong><br />
<strong>$int</strong> &rarr; 1 to 7</p>
<p>notes<br />
if you want to append a file just after the <em>section</em> css you will used &#8216;wpi_css_import_2&#8242; as hook. I wont cover the how part in this guide. check out Wordpress Codex if neeed too.</p>
<p class="sticky">If you are on MSIE6, this page will render in XML ;p. Not my fault really, This site has valid xhtml, CSS 2.1 , xhtml/xml, WCAG A1 &#038; Section 508. Your browser just pwned too much propriety language to survive</p>
<p><em>Support the standards so it will continue to look good in the future.</em> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.kaizeku.com/wordpress/wpi-cross-browser-support/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
