<?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>Chinmay Chiranjeeb &#187; css</title>
	<atom:link href="http://www.chiranjeeb.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chiranjeeb.com</link>
	<description>a UI Developer.</description>
	<lastBuildDate>Thu, 19 Jan 2012 21:56:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS Browser Selector</title>
		<link>http://www.chiranjeeb.com/css-browser-selector/</link>
		<comments>http://www.chiranjeeb.com/css-browser-selector/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 12:02:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[JS Hacks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS Browser Selector]]></category>

		<guid isPermaLink="false">http://www.chiranjeeb.com/?p=59</guid>
		<description><![CDATA[Clever technique to help you on CSS hacks. CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each &#8230; <a href="http://www.chiranjeeb.com/css-browser-selector/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Clever technique to help you on CSS hacks.</h2>
<p>CSS Browser Selector is a very small javascript with just one line and less than 1kb which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.</p>
<h2>EXAMPLE</h2>
<div class="no_js" style="color: red; font-weight: bold;">
<p>http://rafael.adm.br/css_browser_selector/</p></div>
<h3>Source of this example:</h3>
<pre>&lt;style type="text/css"&gt;
.ie .example {
  background-color: yellow
}
.ie7 .example {
  background-color: orange
}
.gecko .example {
  background-color: gray
}
.win.gecko .example {
  background-color: red
}
.linux.gecko .example {
  background-color: pink
}
.opera .example {
  background-color: green
}
.konqueror .example {
  background-color: blue
}
.webkit .example {
  background-color: black
}
.example {
  width: 100px;
  height: 100px;
}
.no_js { display: block }
.has_js { display: none }
.js .no_js { display: none }
.js .has_js { display: block }
&lt;/style&gt;</pre>
<h2>Github</h2>
<p><a href="http://github.com/rafaelp/css_browser_selector">http://github.com/rafaelp/css_browser_selector</a></p>
<h2></h2>
<h2>DOWNLOAD</h2>
<p>git clone git://github.com/rafaelp/css_browser_selector.git</p>
<h2></h2>
<h2>USAGE</h2>
<h3>1. Copy and paste the line above, inside &lt;head&gt; and &lt;/head&gt; tag</h3>
<p>&lt;script src=&#8221;css_browser_selector.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;</p>
<h3>2. Set CSS attributes with the code of each browser/os you want to hack</h3>
<p>Examples:</p>
<ul>
<li>html.gecko div#header { margin: 1em; }</li>
<li>.opera #header { margin: 1.2em; }</li>
<li>.ie .mylink { font-weight: bold; }</li>
<li>.mac.ie .mylink { font-weight: bold; }</li>
<li style="color: #ff0000;">.[os].[browser] .mylink { font-weight: bold; } -&gt; without space between .[os] and .[browser]</li>
</ul>
<h3></h3>
<h3>Available OS Codes [os]:</h3>
<ul>
<li>win &#8211; Microsoft Windows</li>
<li>linux &#8211; Linux (x11 and linux)</li>
<li>mac &#8211; Mac OS</li>
</ul>
<h3></h3>
<h3>Available Browser Codes [browser]:</h3>
<ul>
<li>ie &#8211; Internet Explorer (All versions)</li>
<li>ie8 &#8211; Internet Explorer 8.x</li>
<li>ie7 &#8211; Internet Explorer 7.x</li>
<li>ie6 &#8211; Internet Explorer 6.x</li>
<li>ie5 &#8211; Internet Explorer 5.x</li>
<li>gecko &#8211; Mozilla, Firefox (all versions), Camino</li>
<li>ff2 &#8211; Firefox 2</li>
<li>ff3 &#8211; Firefox 3</li>
<li>opera &#8211; Opera (All versions)</li>
<li>opera8 &#8211; Opera 8.x</li>
<li>opera9 &#8211; Opera 9.x</li>
<li>konqueror &#8211; Konqueror</li>
<li>webkit or safari &#8211; Safari, NetNewsWire, OmniWeb, Shiira, Google Chrome</li>
<li>chrome &#8211; Google Chrome</li>
</ul>
<h3></h3>
<h3>Credits</h3>
<p><a href="http://rafael.adm.br/css_browser_selector/">CSS Browser Selector</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiranjeeb.com/css-browser-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

