<?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 Hacks</title>
	<atom:link href="http://www.chiranjeeb.com/category/css-hacks/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>IE6 color patches on scroll Fixes</title>
		<link>http://www.chiranjeeb.com/ie6-color-patches-on-scroll-fixes/</link>
		<comments>http://www.chiranjeeb.com/ie6-color-patches-on-scroll-fixes/#comments</comments>
		<pubDate>Mon, 04 May 2009 17:19:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Color Patches]]></category>
		<category><![CDATA[IE6 Fixes]]></category>

		<guid isPermaLink="false">http://www.chiranjeeb.com/?p=198</guid>
		<description><![CDATA[I came across the color patches problem on scroll of IE6. Cause: If we have no or different background color in the parent div and the Current div has different background color. Example: HTML CODE &#8230; &#8230; &#8230; &#60;div class=&#8221;outter-content&#8221;&#62; &#8230; <a href="http://www.chiranjeeb.com/ie6-color-patches-on-scroll-fixes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across the color patches problem on scroll of IE6.<br />
<strong>Cause:</strong> If we have no or different background color in the parent div and the Current div has different background color.</p>
<p><strong>Example: </strong></p>
<p><strong>HTML CODE</strong></p>
<p>&#8230; &#8230; &#8230;</p>
<p>&lt;div class=&#8221;outter-content&#8221;&gt;</p>
<p>&lt;div class=&#8221;content-home&#8221;&gt;</p>
<p>&lt;div class=&#8221;banner&#8221;&gt;&#8230; &#8230; &#8230;&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&#8230; &#8230; &#8230;<strong><br />
</strong></p>
<p><strong>CSS CODE</strong></p>
<pre>.outter-content {
	background: #000;
	clear: both;
	border:#a5b3bb 1px solid;
	border-top:0px;
}

.content-home {
	clear: both;
	padding:0 1px;
	background: #d8eaf0;
	border-bottom:1px solid #a6b4bc;
}

.banner{
	background: url("../images/banner.png") no-repeat left top;
	width:1000px;
	height:436px;
}</pre>
<p><strong></strong><strong>Screen Shots:</strong></p>
<div id="attachment_199" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-199" title="ie6-color-patches" src="http://www.chiranjeeb.com/wp-content/uploads/2009/05/ie6-color-patches.png" alt="IE6 Color Patches" width="550" height="321" /><p class="wp-caption-text">IE6 Color Patches</p></div>
<p><strong>Solution:</strong><br />
Change the background of <code>.outter-content</code> to same as <code>.content-home</code>.<br />
<strong></strong></p>
<p><strong>CSS CODE</strong></p>
<pre>.outter-content {
	background: #d8eaf0 ;
	clear: both;
	border:#a5b3bb 1px solid;
	border-top:0px;
}
... ...</pre>
<p><strong>Screen Shots:</strong></p>
<div id="attachment_200" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-200" title="ie6-color-patches-fixed" src="http://www.chiranjeeb.com/wp-content/uploads/2009/05/ie6-color-patches-fixed.png" alt="IE6 Color Patches Fixed" width="550" height="321" /><p class="wp-caption-text">IE6 Color Patches Fixed</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chiranjeeb.com/ie6-color-patches-on-scroll-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 Auto-width Margins Problem fixed</title>
		<link>http://www.chiranjeeb.com/ie6-auto-width-margins/</link>
		<comments>http://www.chiranjeeb.com/ie6-auto-width-margins/#comments</comments>
		<pubDate>Fri, 01 May 2009 18:57:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[DIV Center Align in IE6]]></category>
		<category><![CDATA[IE6 Fixes]]></category>

		<guid isPermaLink="false">http://www.chiranjeeb.com/?p=182</guid>
		<description><![CDATA[Many of developers faced the Auto width Margin (margin:0 auto;) problem in IE6 browsers to make the content div center aligned irrespective of browser window. Here is the solution. Modify the CSS accordingly: body { margin:50px 0px; padding:0px; /* Need &#8230; <a href="http://www.chiranjeeb.com/ie6-auto-width-margins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Many of developers faced the Auto width Margin (<code>margin:0 auto;</code>) problem in IE6 browsers to make the content div center aligned irrespective of browser window.</p>
<p>Here is the solution.</p>
<p>Modify the CSS accordingly:</p>
<pre>
body {
      margin:50px 0px; padding:0px;
      /* Need to set body margin and padding to get
      consistency between browsers. */
      text-align:center; /* Hack for IE5/Win */
}

#Content {
      width:500px;
      margin:0px auto; /* Right and left margin widths set to "auto" */
      text-align:left; /* Counteract to IE5/Win Hack */
      padding:15px;
      border:1px dashed #333;
      background-color:#eee;
}
</pre>
<p>Screen Shots:</p>
<p>IE6</p>
<div id="attachment_184" class="wp-caption aligncenter" style="width: 560px"><img src="http://www.chiranjeeb.com/wp-content/uploads/2009/05/ie6.png" alt="IE6 Screen Shots" title="IE6 Screen Shots" width="550" height="330" class="size-full wp-image-184" /><p class="wp-caption-text">IE6 Screen Shots</p></div>
<p>FF3</p>
<div id="attachment_183" class="wp-caption aligncenter" style="width: 560px"><img src="http://www.chiranjeeb.com/wp-content/uploads/2009/05/ff3.png" alt="FF3 Screen Shots" title="FF3 Screen Shots" width="550" height="330" class="size-full wp-image-183" /><p class="wp-caption-text">FF3 Screen Shots</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chiranjeeb.com/ie6-auto-width-margins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>

