<?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>Php Development &#187; css</title>
	<atom:link href="http://www.maheshchari.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maheshchari.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Jan 2012 02:42:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>textarea resize disable</title>
		<link>http://www.maheshchari.com/textarea-resize-disable/</link>
		<comments>http://www.maheshchari.com/textarea-resize-disable/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 22:36:54 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=690</guid>
		<description><![CDATA[How to disable text area re size icon for chrome or webkit browsers. Recently when i was implementing new application , i was asked to remove the text area resize feature and text area glow when user focuses on the text area. Thank god it doesn&#8217;t took much effort. it can be done with simple [...]]]></description>
			<content:encoded><![CDATA[<h1>How to disable text area re size icon for chrome or webkit browsers.</h1>
<p>Recently when i was implementing new application , i  was asked to remove the text area resize feature and text area glow when user focuses on the text area. Thank god it doesn&#8217;t took much effort. it can be done with simple CSS tweaks.<br />
i placed the following CSS code in my page and it solved <img src='http://www.maheshchari.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.exampletextarea</span> <span style="color: #00AA00;">&#123;</span>
resize<span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=690&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/textarea-resize-disable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>horizontal scroll</title>
		<link>http://www.maheshchari.com/horizontal-scroll/</link>
		<comments>http://www.maheshchari.com/horizontal-scroll/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 21:28:19 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=672</guid>
		<description><![CDATA[how to scroll the window horizontally scroll? I got asked by my coleague to horizontal scroll the window , let me explain the scenario , page width is 1500px with a 1500px image in back ground and it should be always centered on page load and window resized. i got a solution thanx to jQuery.scrollTo [...]]]></description>
			<content:encoded><![CDATA[<h1>how to scroll the window horizontally scroll?<br />
</h1>
<p>I got asked by my coleague to horizontal scroll the window , let me explain the scenario  , page width is 1500px with a 1500px image in back ground and it should be always centered on page load and window resized. i got a solution thanx to<a href="http://demos.flesler.com/jquery/scrollTo/" target="_blank" rel="nofollow"> jQuery.scrollTo plugin</a>. </p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;how to center the window for small screen&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.6.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.scrollTo-min.js&quot;&gt;&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
#container {
	width: 1500px;
	border: 1px solid #333;
	min-height:500px;
	margin:0 auto;
	text-align:center;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;
  &lt;h1&gt;This container has 1500px width  and centered into the view port.&lt;/h1&gt;
  &lt;h2&gt; if this container is seen in less than 1500px  ,&lt;/h2&gt;
  &lt;h3&gt; it should be scrolled to the centered on&lt;/h3&gt;
  &lt;h4&gt;page initializes and window resizes&lt;/h4&gt;
&lt;/div&gt;
&lt;script&gt;
$().ready(function(){
$.scrollTo('50%',{axis:'x'});
$(window).resize(function(){$.scrollTo('50%',{axis:'x'});});
});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<h2><a href='http://www.maheshchari.com/wp-content/uploads/2011/07/horiz.zip'>Demo</a></h2>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=672&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/horizontal-scroll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>input hidden ie7</title>
		<link>http://www.maheshchari.com/input-hidden-ie7/</link>
		<comments>http://www.maheshchari.com/input-hidden-ie7/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 09:19:51 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=665</guid>
		<description><![CDATA[IE7 form hidden input field bug fix Every HTML form may have hidden input fields. Generelly every web browser will render this input hidden field as display:none . but in ie7 it will have small gap. since we can&#8217;t replace or change the position of the input hidden fields ,if they come from any CMS [...]]]></description>
			<content:encoded><![CDATA[<h1>IE7 form hidden input field bug fix<br />
</h1>
<p>Every HTML form  may have hidden input fields. Generelly every web browser will render this input hidden field as display:none . but in ie7 it will have small gap. since we can&#8217;t replace or change the position of the input hidden fields ,if they come from any CMS it is hard. here is a simple trick that will fix the ie7 bug.</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.hiddeninput</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=665&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/input-hidden-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scrollbar css</title>
		<link>http://www.maheshchari.com/scrollbar-css/</link>
		<comments>http://www.maheshchari.com/scrollbar-css/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 16:55:23 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=659</guid>
		<description><![CDATA[Remove or hide default scroll bar in IE By default Windows Microsoft Internet Explorer (IE) for all versions have a scrollbar on textareas, even there is no content in .Because IE will treat default CSS overflow property value is scroll. For other browsers it is auto. So to fix this we should have this to [...]]]></description>
			<content:encoded><![CDATA[<h1>Remove or hide default scroll bar in IE<br />
</h1>
<p>By default  <strong>Windows Microsoft Internet Explorer (IE)</strong> for all versions have a <strong>scrollbar</strong> on textareas, even there is no content in .Because <strong>IE</strong> will treat default CSS <strong>overflow</strong> property value is <strong>scroll</strong>. For other browsers it is <strong>auto</strong>.</p>
<p>So to fix this we should have this to our CSS .</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#fixedtextarea</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h2>Out put</h2>
<p><a href="http://www.maheshchari.com/wp-content/uploads/2011/07/ie-removed-scrollbar-textarea.jpg"><img src="http://www.maheshchari.com/wp-content/uploads/2011/07/ie-removed-scrollbar-textarea.jpg" alt="" title="ie removed scrollbar textarea" width="403" height="318" class="aligncenter size-full wp-image-661" /></a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=659&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/scrollbar-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ie css hack reference</title>
		<link>http://www.maheshchari.com/ie-css-hack-reference/</link>
		<comments>http://www.maheshchari.com/ie-css-hack-reference/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 04:07:24 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=381</guid>
		<description><![CDATA[CSS difference Between IE6,IE7,IE8 As a designer we experience the most bizzare conditions with internet explerer because it doesn&#8217;t follow w3 standereds mostly while rendering elemets and Box Model where moslty other Gecko browsers follow same.Even i am very good at programming ,i experience difficult to find IE issues,wasted more time on CSS issues than [...]]]></description>
			<content:encoded><![CDATA[<h2>CSS difference Between IE6,IE7,IE8</h2>
<p>As a designer we experience the most bizzare conditions with internet explerer because it doesn&#8217;t follow w3 standereds mostly while rendering elemets and Box Model where moslty other Gecko browsers follow same.Even i am very good at programming ,i experience difficult to find IE issues,wasted more time on CSS issues than programming.So i came up with reference for IE and instructions how to handle them to keep in mind reference for me (us).Even there is difference between IE versions also.So below is the reference </p>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="18%" align="center"><strong>Selector Type </strong></td>
<td align="center"><strong>Examples &amp; description </strong></td>
<td width="8%" align="center"><strong>IE6</strong></td>
<td width="6%" align="center"><strong>IE7</strong></td>
<td width="7%" align="center"><strong>IE8</strong></td>
</tr>
<tr>
<td><strong>Child Selectors: </strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">body&amp;gt;p,ul&amp;gt;li</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Chained Classes</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">	.class1 .class2 .class3,
	or like class=&quot; class1 class2 class3&quot;</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Attribute Selectors</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">a[href=xyx],input[type=radio]</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Adjacent Sibling Selectors</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">h1+p,li+ul,ul+li</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>General Sibling Selectors</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">h1~p,li~ul,ul~li</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Pseudo-Classes and Pseudo-Elements</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">a:hover span ,li:first p</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Chained Pseudo-Classes</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">a:first-child:hover ,  a:active:hover</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>:hover on Non-Anchor Elements</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">p:hover</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>:first-child Pseudo-Class</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">div li:first-child</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>:focus Pseudo-Class</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">a:focus</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>:before and :after Pseudo-Elements</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">.class:before,.class:after</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Min-Height &amp; Min-Width</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#box {  max-height: 500px;  min-width: 300px;  }</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Transparent Border Color</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#box {  	border: solid 1px transparent;  }</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Fixed-Position Elements</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#box {  	position: fixed;  }</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>inherit</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#box {  	display: inherit;  }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Border Spacing on Table Cells</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">table td {  	border-spacing: 3px;  }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Vertical Position of a Table Caption</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">table {  	caption-side: bottom;  }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Clipping Regions</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">#box {  	rect(20px, 300px, 200px, 100px)  }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Alternative Values for the Display Property</strong></td>
<td>display property values other than block,none,inline,inline-block. </td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Handling of Collapsible Whitespace</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">	p { 	white-space: pre-line;  }  
	div { 	white-space: pre-wrap;  }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>@import</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">@import url(&quot;styles.css&quot;;) screen;</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>Quote Characters for Generated Content</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">	q {quotes: &quot;'&quot; &quot;'&quot;; } 
	q:before {content: open-quote;} 
	q:after {content: close-quote; }</pre></div></div>

</td>
<td>No</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td><strong>!important</strong></td>
<td>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">ul {margin-left:0 !important}</pre></div></div>

</td>
<td>No</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<h2>Handling Issues</h2>
<p>In the most cases IE6 doesn&#8217;t support all selector types to other IE7,IE8.</p>
<p>Even though IE7,IE8 both support much same selectors,they have difference in box model and rendering elements.  </p>
<p>In the case of IE7 it just need to add special IE7 css fix style like below </p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!--[if IE]&gt; &lt;link href=&quot;ie_only.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;![endif]--&gt;
		&lt;!--[if lt IE 7]&gt; &lt;link href=&quot;ie_6_and_below.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;![endif]--&gt;
		&lt;!--[if !lt IE 7]&gt;&lt;![IGNORE[--&gt;&lt;![IGNORE[]]&gt; &lt;link href=&quot;recent.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;!--&lt;![endif]--&gt;
		&lt;!--[if !IE]&gt;--&gt; &lt;link href=&quot;not_ie.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;!--&lt;![endif]--&gt;</pre></div></div>

<p> in the case IE6,we can&#8217;t handle totally with seperate CSS file fix like above example,it needs some layout tweaks also. </p>
<p>We can show elements with conditions as below specified. </p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;![if!IE]&gt;
This shows up in anything but IE
&lt;![endif]&gt;</pre></div></div>

<p>It is better to avoid special characters in selecter name like &quot;_&quot;,&quot;-&quot;,even they support mostly browsers. </p>
<h2>Hadling CSS fixes with special selectors</h2>
<p>Only IE6 and below <br />
* html {}</p>
<p>IE7 and below</p>
<p>*:first-child+html {} * html {}</p>
<p>IE7 only</p>
<p>*:first-child+html {}</p>
<p>IE7 and Modern Browsers only<br />
html&gt;body {}</p>
<p>Recent Opera versions 9 and below</p>
<p>html:first-child {}</p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=381&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/ie-css-hack-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css image rollover</title>
		<link>http://www.maheshchari.com/css-image-rollover/</link>
		<comments>http://www.maheshchari.com/css-image-rollover/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 17:25:05 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[PHP/mysql]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=210</guid>
		<description><![CDATA[image rollover effect with css background image Here we use basic css back ground image to get rollover effect.the logic is simple and we can find it in comments in script itself. we create a empty link set back ground as test1.jpg and display to block and height and width to 150px. build a suido [...]]]></description>
			<content:encoded><![CDATA[<h1>image rollover effect with css background image </h1>
<p>Here we use basic css back ground image  to get rollover effect.the logic is simple and we can find it in comments in script itself.</p>
<ul>
<li>we create a empty link </li>
<li> set back ground as test1.jpg and display to block and height and width to 150px. </li>
<li>build a suido selctor hover to link and set back ground image to test2.jpg </li>
<li>this works even javascript disabled browsers also </li>
</ul>
<h3>Download Script</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-css.zip'>image-rollover-css</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;image rollover with css&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
#imagerollover a {
	background-image: url(test2.JPG);
	display: block;
	background-repeat: no-repeat;
	height: 150px;
	width: 150px;
}
#imagerollover a:hover{
	background-image: url(test1.JPG);
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;imagerollover&quot;&gt;&lt;a href=&quot;#test&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<h3>Download Script</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/image-rollover-css.zip'>image-rollover-css</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=210&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/css-image-rollover/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>css opacity tutorial</title>
		<link>http://www.maheshchari.com/css-opacity-tutorial/</link>
		<comments>http://www.maheshchari.com/css-opacity-tutorial/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:23:40 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[opacity]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=174</guid>
		<description><![CDATA[tutorial for Cross Browser Compatible CSS opacity At earlier stage of CSS the opacity property of element is big issue to make compatible with all browsers.but now CSS3 almost modern browsers support this property.Even though it takes time to rule CSS3 the web world.Here we see example. Download Source Code css-opacity-source code-example CSS Code 1 [...]]]></description>
			<content:encoded><![CDATA[<h1>tutorial for Cross Browser Compatible CSS opacity</h1>
<p>At earlier stage of CSS the opacity property of element is big issue to make compatible with all browsers.but now CSS3 almost modern browsers support this property.Even though it takes time to rule  CSS3 the web world.Here we see example.</p>
<h2>Download Source Code</h2>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/css-opacity-tutorial-example.rar'>css-opacity-source code-example</a></p>
<h2>CSS Code</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.toggleopacity</span> img <span style="color: #00AA00;">&#123;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> 
	-moz-opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-left-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.toggleopacity</span><span style="color: #3333ff;">:hover </span>img <span style="color: #00AA00;">&#123;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h2>HTML Code</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;CSS opacity tutorials and example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;a href=&quot;#yourlink&quot; class=&quot;toggleopacity&quot;&gt; &lt;img src=&quot;round.jpg&quot; alt=&quot;My round&quot; width=&quot;32&quot; height=&quot;32&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;#yourlink&quot; class=&quot;toggleopacity&quot;&gt; &lt;img src=&quot;round.jpg&quot; alt=&quot;My round&quot; width=&quot;32&quot; height=&quot;32&quot; /&gt; &lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<h3>Setting Opacity of element with Javascript</h3>
<p>Below Javascript function set the element opacity to at desired level for given element.<br />
if opacity is 0 specified ,it hides the element as there no need to display the element further.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> changeOpac<span style="color: #009900;">&#40;</span>opacity<span style="color: #339933;">,</span> id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> object <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>opacity <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span> object.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #009900;">&#123;</span> object.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">'block'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
	object.<span style="color: #660066;">opacity</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>opacity <span style="color: #339933;">/</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	object.<span style="color: #660066;">MozOpacity</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>opacity <span style="color: #339933;">/</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	object.<span style="color: #660066;">KhtmlOpacity</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>opacity <span style="color: #339933;">/</span> <span style="color: #CC0000;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	object.<span style="color: #660066;">filter</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;alpha(opacity=&quot;</span> <span style="color: #339933;">+</span> opacity <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;)&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h2>Download Source Code</h2>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/css-opacity-tutorial-example.rar'>css-opacity-source code-example</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=174&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/css-opacity-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>round corners with css sprites</title>
		<link>http://www.maheshchari.com/round-corners-with-css-sprites/</link>
		<comments>http://www.maheshchari.com/round-corners-with-css-sprites/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 12:18:00 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=158</guid>
		<description><![CDATA[round corners with css sprites We know that all modern web browsers supports rounded corner elements but it doesn&#8217;t work in IE6.we know that all majority users are IE6 after the fire fox in organizations.here we use CSS sprites technique ,we already discussed about the advantage of the CSS sprites in my previous post. Steps [...]]]></description>
			<content:encoded><![CDATA[<h1>round corners with css sprites</h1>
<p>We know that all modern web browsers supports <strong>rounded corner</strong> elements but it doesn&#8217;t work in IE6.we know that all majority users are IE6 after the fire fox in organizations.here we use <strong>CSS sprites</strong> technique ,we already discussed about the advantage of the <strong>CSS sprites</strong> in my previous <a href="http://www.maheshchari.com/css-sprites-image-preloding/">post</a>.</p>
<p><a href="http://www.maheshchari.com/wp-content/uploads/2009/06/css-sprite-rounded-corner-example.jpg"><img src="http://www.maheshchari.com/wp-content/uploads/2009/06/css-sprite-rounded-corner-example.jpg" alt="css-sprite-rounded-corner-example" title="css-sprite-rounded-corner-example" width="250" height="122" class="alignnone size-full wp-image-162" /></a></p>
<p><h3>Steps</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/round-corners-maheshcharicom.rar'>Download Script/Source Code</a><br />
here we make the 16degrees rounded corners.for that we use 32x32px(twice the corner size) circle image as shown below.<br />
<a href="http://www.maheshchari.com/wp-content/uploads/2009/06/round.jpg"><img src="http://www.maheshchari.com/wp-content/uploads/2009/06/round.jpg" alt="example image with 32x32px size" title="example image with 32x32px size" width="32" height="32" class="alignnone size-full wp-image-159" /></a><br />
we create four <strong>corner </strong>divs in a container divs and place them at every corner and with a given image is back ground.<br />
Below example is self explanatory with comments in it.
</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Round Corners With CSS&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.roundeddiv { 
	width: 400px;
	position: relative;
	background-color: #006702;
	padding: 0px;
	display: block;
}
&lt;!-- Here we use on class common for all corners that shares commen properties--&gt;
.corner {
	background-image: url(round.jpg);
	position: absolute;
	height: 16px;
	width: 16px;
	background-repeat: no-repeat;
	overflow: hidden;
	z-index: 1;
	margin: 0px;
	padding: 0px;
}
h3 {
	margin: 0px;
	padding: 0px;
}
&nbsp;
.container {
	position: relative;
	padding: 16px;
}
&lt;!-- we come from top right as anti clock wise --&gt;
&lt;!-- Top Right Corner  --&gt;
.tr {
	top: 0px;
	right: 0px;
	background-position: -16px 0px;
}
&lt;!--Bottom Right Corner --&gt;
.br {
	right: 0px;
	bottom: 0px;
	background-position: -16px -16px;
}
&nbsp;
&lt;!--Bottom Left Corner --&gt;
.bl {
	left: 0px;
	bottom: 0px;
	background-position: 0px -16px;
}
&lt;!--Top Left Corner --&gt;
.tl {
	background-position: 0px 0px;
	left: 0px;
	top: 0px;
}
&nbsp;
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;roundeddiv&quot;&gt;
&lt;!-- start corner divs --&gt;
  &lt;div class=&quot;corner tr&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;corner bl&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;corner br&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;corner tl&quot;&gt;&lt;/div&gt;
&lt;!-- end corner divs --&gt;
&lt;!-- start content --&gt;
  &lt;div class=&quot;container&quot;&gt;
    &lt;h3&gt;Rounded Corners Example &lt;/h3&gt;
    &lt;h3&gt;Rounded Corners with CSS sprites Tutorials. &lt;/h3&gt;
  &lt;/div&gt;
&lt;!-- end content --&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/06/round-corners-maheshcharicom.rar'>Download Script/Source Code</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=158&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/round-corners-with-css-sprites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css sprites image preloding</title>
		<link>http://www.maheshchari.com/css-sprites-image-preloding/</link>
		<comments>http://www.maheshchari.com/css-sprites-image-preloding/#comments</comments>
		<pubDate>Tue, 26 May 2009 12:36:17 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[image preloading]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=101</guid>
		<description><![CDATA[Image pre loading with css and image sprites We discussed image pre loading with javascript in my previous post.but it can&#8217;t be use full when javascript disabled browsers (off course use disables).So i got one idea how to implement without javascript for image preloading . With Hidden Div Element here the trick ,we know that [...]]]></description>
			<content:encoded><![CDATA[<h1>Image  pre loading with css and image sprites</h1>
<p>We discussed <a href="http://www.maheshchari.com/javascript-image-preloading/">image pre loading with javascript </a>in my previous post.but it can&#8217;t be use full when javascript disabled browsers (off course use disables).So i got one idea how to implement without javascript for image preloading .</p>
<h3>With Hidden Div Element</h3>
<p>here the trick ,we know that browser loads all the assets (images,audio,embed elements ) as they appear in the HTML document.So we create a dive and hide and make it null style element .put the images which you want to load .</p>
<h3>using css image sprites </h3>
<p>for tri state button we need three image for each state (normal, hover, focus) by default we load normal image back ground. when we hove first time the  second image loaded . so we use images sprites. as shown <div id="attachment_104" class="wp-caption alignnone" style="width: 160px"><a href="http://www.maheshchari.com/wp-content/uploads/2009/05/ex-sprite.png"><img src="http://www.maheshchari.com/wp-content/uploads/2009/05/ex-sprite.png" alt="Sample Sprite image for tri state buttons" title="ex-sprite" width="150" height="72" class="size-full wp-image-104" /></a><p class="wp-caption-text">Sample Sprite image for tri state buttons</p></div></p>
<h3>Download Example Source code</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/05/image-preloading-with-css-sprites.rar'>image-preloading-with-css-sprites source code</a></p>
<h3>Example for HTML</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Image Preloading With CSS and Sprites&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!--
please visit for detailed tutorial http://www.maheshchari.com
Here we use simple trick ,it work even without javascript
first create a div element with given style attributes specified above.
include the images  which to be preloaded.
remember put this div after the body tag,
since this element is first rendered,
all the images are loaded before they used
 --&gt;
 image-preloading-with-css-sprites
&lt;div id=&quot;preloader_div&quot;&gt; &lt;img src=&quot;amphi-thetre.jpg&quot; /&gt; &lt;img src=&quot;amphi-thetre1.jpg&quot; /&gt; &lt;img src=&quot;amphi-thetre2.jpg&quot; /&gt; &lt;img src=&quot;amphi-thetre3.jpg&quot; /&gt;&lt;img src=&quot;ex-sprite.png&quot; /&gt;&lt;/div&gt;
&lt;div id=&quot;wrapper&quot;&gt;begin your work here.&lt;/div&gt;
&lt;h3&gt;Preloading with images sprites example tri state button.&lt;/h3&gt;
&lt;ul id=&quot;tributtons&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.maheshchari.com/&quot;&gt;button1&lt;/a&gt; &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.maheshchari.com/&quot;&gt;button2&lt;/a&gt; &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.maheshchari.com/&quot;&gt;button3&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<h3>Css sample</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;!--
&nbsp;
<span style="color: #cc00cc;">#preloader_div</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;!-- tri state buttons --<span style="color: #00AA00;">&gt;</span>
<span style="color: #cc00cc;">#tributtons</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tributtons</span> a<span style="color: #00AA00;">,</span>a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">ex-sprite.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">24px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">capitalize</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tributtons</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">-24px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#tributtons</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">-48px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
--<span style="color: #00AA00;">&gt;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></td></tr></table></div>

<h3>Download Example Source code</h3>
<p><a href='http://www.maheshchari.com/wp-content/uploads/2009/05/image-preloading-with-css-sprites.rar'>image-preloading-with-css-sprites source code</a></p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=101&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/css-sprites-image-preloding/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

