<?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>Productivedreams.com &#187; Tutorials</title>
	<atom:link href="http://www.productivedreams.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.productivedreams.com</link>
	<description>A blog to keep you updated on the latest design trends.</description>
	<lastBuildDate>Sat, 27 Mar 2010 04:09:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A simple CSS based usability tip for search buttons</title>
		<link>http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/</link>
		<comments>http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 11:59:09 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Hacks]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=1840</guid>
		<description><![CDATA[This is a small tip to improve the usability of search fields. I realized the need of this while working on a recent project and thought it was good enough to share with my readers   Do you have the habit of hitting the search button multiple times even before it loads the search [...]]]></description>
			<content:encoded><![CDATA[<p>This is a small tip to improve the usability of search fields. I realized the need of this while working on a recent project and thought it was good enough to share with my readers <span> <img src='http://www.productivedreams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p><p>Do you have the habit of hitting the search button multiple times even before it loads the search results? Well&#8230; I used to do that and so do many other users. Clicking the search button multiple times results in additional server requests and slows down the page&#8217;s loading time. </p>
<h1>Why do users click again? </h1><p>Because they are users! They aren&#8217;t developers who understand what happens in the back end.</p><p>Its our job as developers/designers to let the user know that the results are being loaded and to ask them to wait until it loads.</p>
<h1>How do I do it with just CSS?</h1><p>Its pretty simple. Click and hold the search button below and see.</p><span id="more-1840"></span><br /><iframe src="http://www.productivedreams.com/wp-content/themes/pd/workshop/usable-search/" height="40px" scrolling="no" style="overflow:hidden;"><br /></iframe><p>I am sure, I don&#8217;t have to explain how it works for the experts, but if you are novice continue reading&#8230;</p><p>The trick is to use CSS sprites and show the animated loader image while the user clicks the button(on focus), indicating that the page is being loaded. You can download the sprite <a href="http://www.productivedreams.com/wp-content/themes/pd/workshop/usable-search/search-sprite.gif" target="_blank">here</a>. </p>
<h1>Now, how do I avoid multiple clicks?</h1><p>Its impossible to disable a button just with CSS, but we can ask the user to wait by replacing the hand/pointer with a &#8220;wait&#8221; cursor. So this is how the final CSS code looks like.</p>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">input.submit{</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">width:16px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">height:16x;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">display:block;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">overflow:hidden;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">text-indent:-999px; /* To remove any default text on the button*/</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">line-height:16px; /* required for safari */</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">background:url(search-sprite.gif) no-repeat 0 0; /* This will display the search icon by default */</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">cursor:pointer; /* Hand cursor for the normal state */</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">border:none;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">padding:0;</pre></td></tr><tr><td class="devcodelines" width="1%">13</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">14</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">15</td><td class="devcodelinesarea"><pre class="devcode devcodeline">input.submit:hover{</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">16</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background-position: 0 -16px; /* This will display the dark search icon on hover */</pre></td></tr><tr><td class="devcodelines" width="1%">17</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">18</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">19</td><td class="devcodelinesarea"><pre class="devcode devcodeline">input.submit:active{</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">20</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background-position: 0 -32px; /* And finally, this is the one that shows the loader */</pre></td></tr><tr><td class="devcodelines" width="1%">21</td><td class="devcodelinesarea"><pre class="devcode devcodeline">cursor:wait; /* Shows the wait cursor on click */</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">22</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">23</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=usable-search.zip" title="Version 1.0 downloaded 347 times" ><img src="" alt="Download CSS Based Usability Tip for Search Buttons Version 1.0" /></a> <br /></div><p>If you really want to disable the button, check out this <a href="http://jquery-howto.blogspot.com/2009/05/disable-submit-button-on-form-submit.html">JQuery solution</a>. And, don't forget to put in your thoughts and ideas.</p>
<div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/" title="IE CSS hack without using any hacks!">IE CSS hack without using any hacks!</a></li><li><a href="http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/" title="10 CSS properties that &#8216;were&#8217; impossible to implement in IE6">10 CSS properties that &#8216;were&#8217; impossible to implement in IE6</a></li><li><a href="http://www.productivedreams.com/min-width-issue-in-ie6/" title="Min-width issue in IE6">Min-width issue in IE6</a></li><li><a href="http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/" title="3 common requirements/issues and the corresponding Jquery solutions for your next web project">3 common requirements/issues and the corresponding Jquery solutions for your next web project</a></li><li><a href="http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/" title="Making gallery submissions easy for designers">Making gallery submissions easy for designers</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>3 common requirements/issues and the corresponding Jquery solutions for your next web project</title>
		<link>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/</link>
		<comments>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 11:30:10 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=1756</guid>
		<description><![CDATA[Hi friends&#8230; Another post to boost your productivity   Recently, while working on some client projects, I noticed a few requirements(I know there are many) that were common. I strongly feel, this will be useful for your next web project.<br />1. Empty form field value on focus/click<br />The requirement/issue:This is a very common requirement. You would [...]]]></description>
			<content:encoded><![CDATA[Hi friends&#8230; Another post to boost your productivity <span> <img src='http://www.productivedreams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span><p>Recently, while working on some client projects, I noticed a few requirements(I know there are many) that were common. I strongly feel, this will be useful for your next web project.</p>
<br /><h1>1. Empty form field value on focus/click</h1>
<img src="http://www.productivedreams.com/wp-content/uploads/2010/03/form-focus.jpg" alt="form-focus" title="form-focus" width="508" height="209" class="alignnone size-full wp-image-1808" /><span id="more-1756"></span><br /><strong>The requirement/issue:</strong><p>This is a very common requirement. You would have noticed form fields that have a value by default which disappears when you click/focus on them. When you click outside, the value appears again.</p>
<strong>Solution:</strong><br /><a href="http://www.madewithlove.be/talk/the-jquery-emptyonclick-plugin">The jQuery emptyonclick Plugin</a> works like a charm. All you need to do is download this plugin to your project directory and include the following code within the head tags.<br /><br /><pre class="devcodeblock" title="Javascript"><table class="devcodetools"><tbody><tr><td>Javascript</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;script charset=&quot;utf-8&quot; type=&quot;text/javascript&quot; src=&quot;jquery.emptyonclick.js&quot;&gt;&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;script type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">$(document).ready(function(){</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">    $('.emptyonclick').emptyonclick();</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">});</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<br />Now add the class "emptyonclick" to all form fields that you would like to empty onclick.<br /><br />You can find more about the usage <a href="http://www.madewithlove.be/talk/the-jquery-emptyonclick-plugin">here</a><br /><br /><h1>2. Truncate lengthy text with either a "more" button or 3 dots at the end</h1>
<img src="http://www.productivedreams.com/wp-content/uploads/2010/03/truncate-with-dots.jpg" alt="truncate-with-dots" title="truncate-with-dots" width="508" height="209" class="alignnone size-full wp-image-1809" /><br /><strong>The requirement/issue:</strong><p>I am sure that most of you would already have faced this issue, especially with lengthy breadcrumbs. You don't have to run behind and bother a programmer anymore for a solution.</p>
<strong>Solution:</strong><p><a href="http://www.reindel.com/truncate">Truncate</a> is an awesome jQuery plugin that helps you achieve this in seconds. Download the plugin and include the following code within the head tags</p>
<br /><pre class="devcodeblock" title="Javascript"><table class="devcodetools"><tbody><tr><td>Javascript</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;script charset=&quot;utf-8&quot; type=&quot;text/javascript&quot; src=&quot;jquery.truncate-2.3.js&quot;&gt;&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">$(function() {</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">    $(&quot;.classname&quot;).truncate( 60 );</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">});</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">13</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p>Replace the .classname with the class name of your HTML element that contains the text. Also, the number 60 in the code above is the maximum number of characters you would like to allow before truncating. Replace that with your value.</p><p>Adding a "more" link at the end of the text is another cool usage. You can find more about the usage <a href="http://www.reindel.com/truncate/">here</a>.</p>
<h1>3. Adding classes to the first and last list items</h1>
<img src="http://www.productivedreams.com/wp-content/uploads/2010/03/first-last-class-li.jpg" alt="first-last-class-li" title="first-last-class-li" width="508" height="209" class="alignnone size-full wp-image-1810" /><br /><strong>The requirement/issue:</strong><p>I don't think there will be a HTML/CSS developer who haven't abused wordpress for not adding first and last classes for their lists</p><p>Just imagine a menu that needs a different background for the first and last list item. You'll find this handy when creating themes for a CMS like wordpress where you have no control over the HTML code.</p>
<strong>Solution:</strong><p>After spending a few minutes on google, I found <a href="http://snipplr.com/view/26333/jquery--add-first-and-last-class-to-li/">this snippet</a></p>
<pre class="devcodeblock" title="Javascript"><table class="devcodetools"><tbody><tr><td>Javascript</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;script type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">$(function(){</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">  $(&quot;li:first-child&quot;).addClass(&quot;first_item&quot;);</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">  $(&quot;li:last-child&quot;).addClass(&quot;last_item&quot;);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">});</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p>This can also be achieved using the :first-child and :last-child CSS pseudo-classes.</p><div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/" title="A simple CSS based usability tip for search buttons">A simple CSS based usability tip for search buttons</a></li><li><a href="http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/" title="Making gallery submissions easy for designers">Making gallery submissions easy for designers</a></li><li><a href="http://www.productivedreams.com/everything-you-need-to-know-about-parallax/" title="Everything you need to know about Parallax">Everything you need to know about Parallax</a></li><li><a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/" title="IE CSS hack without using any hacks!">IE CSS hack without using any hacks!</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Making gallery submissions easy for designers</title>
		<link>http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/</link>
		<comments>http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 09:56:44 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[logos]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=1696</guid>
		<description><![CDATA[Submitting designs to galleries has always been a hectic task for designers. Do you agree with me? This post is to give you an overview on the procedure I follow to make this easy. If you have better ideas please do contribute via the comment form below.Requirements1. Firefox Sorry IE users!2. InFormEnter AddOn for firefox3. [...]]]></description>
			<content:encoded><![CDATA[Submitting designs to galleries has always been a hectic task for designers. Do you agree with me? This post is to give you an overview on the procedure I follow to make this easy. If you have better ideas please do contribute via the comment form below.<br /><br /><strong>Requirements</strong><br />1. <a href="http://www.mozilla.com/en-US/">Firefox</a> Sorry IE users!<br />2. <a href="https://addons.mozilla.org/en-US/firefox/addon/673">InFormEnter</a> AddOn for firefox<br />3. Details about your logo/website (will explain this below)<br />4. Image of your logo in various dimensions (will explain this as well)<br /><br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/gallery-submission-firefox.jpg" alt="gallery-submission-firefox" title="gallery-submission-firefox" width="508" height="249" class="alignnone size-full wp-image-1750" /><br /><br />I assume that you&#8217;ve already read my post &#8211; <a href="http://www.productivedreams.com/20-sites-to-submit-your-logos/">22 Sites &#038; Galleries to submit your logos</a>. In this post I&#8217;ll walk you through my logo design submission process, which can be made use for CSS gallery submissions as well. <br /><br /><h1>Step 1: Bookmarking the gallery forms</h1>
<span id="more-1696"></span><br />The first step is to bookmark all the submission forms of famous galleries. I know it&#8217;s not that easy, but trust me it will make things easy. Open a blank firefox window and then open all the logo gallery submission forms mentioned <a href="http://www.productivedreams.com/20-sites-to-submit-your-logos/">here</a> in separate tabs. Once you&#8217;ve opened all, go to Bookmarks Menu &gt;  Bookmark All Tabs (or Shift + Cmd/Ctrl + D)<br /><br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/bookmarking-using-firefox.jpg" alt="Bookmarking-using-firefox" title="Bookmarking-using-firefox" width="508" height="224" class="alignnone size-full wp-image-1710" /><br /><br />This would open a pop-up, wherein you can add a name for the bookmark folder. Choose &#8216;Bookmarks Toolbar&#8217; from the dropdown and click the &#8220;Add Bookmarks button&#8221;. <br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/bookmark-popup3.jpg" alt="bookmark-popup" title="bookmark-popup" width="508" height="183" class="alignnone size-full wp-image-1720" /><br />Awesome! You&#8217;ve created a &#8216;Bookmark folder&#8217; for your logo submission which you can now access from your Bookmarks toolbar.<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/bookmarks-toolbar.jpg" alt="bookmarks-toolbar" title="bookmarks-toolbar" width="508" height="511" class="alignnone size-full wp-image-1717" /><br />Whenever you come across a new submission form you can add them to this folder.<br /><h1>Step 2: Prepare a list of all possible form fields</h1>
The next task is to make a list of all possible submission form fields. I&#8217;ve created one for logo design submission. If you&#8217;re the creator of the logo, the first 8 items remain same for all your logo submissions. We&#8217;ll see how to make use of this list in the next step.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />First Name<br />Last Name<br />Full Name<br />Email Id<br />Twitter Id<br />Designer Website Title<br />Designer Website URL<br />Designer Bio<br /><br />Title/Name of the logo<br />Logo Punchline/tagline<br />Logo URL (if your logo is already online)<br />Description of logo<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br /><h1>Step 3: Using InFormEnter to fill the forms</h1>
I hope you&#8217;ve already installed this addon. If not do it right now, it&#8217;s really worth! Now you should see a blue arrow icon on the bottom right of your Firefox status bar. Click the icon and select &#8220;InFormEnter Options&#8221;.<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/informenter-addon.jpg" alt="informenter-addon" title="informenter-addon" width="508" height="135" class="alignnone size-full wp-image-1727" /><br />So you have the pop-up ready to enter the list of form fields mentioned above. See the image below to know how I created the list for the &#8220;Beetle Nut&#8221; logo<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/informenter-popup.jpg" alt="informenter-popup" title="informenter-popup" width="508" height="445" class="alignnone size-full wp-image-1729" /><br /><br /><h1>Step 4: Prepare your images for submission</h1>
This is critical since the image dimensions accepted by each gallery varies. Here goes a list of sizes accepted by most logo galleries.<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />284&#215;130<br />300&#215;180<br />320&#215;260<br />325&#215;260<br />394&#215;197<br />400&#215;400<br />500&#215;247<br />500&#215;300<br />550&#215;338<br />620&#215;340<br />640&#215;360<br />880&#215;440<br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />I usually create a folder for each logo, re-size the logos and name them based on these dimensions. But make sure the file size is low. See the images below.<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/logo-dimensions.jpg" alt="logo-dimensions" title="logo-dimensions" width="508" height="405" class="alignnone size-full wp-image-1732" /><br />This makes the form submission process easy!<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/logo-select.jpg" alt="logo-select" title="logo-select" width="508" height="259" class="alignnone size-full wp-image-1734" /><br /><br /><h1>Step 5: Start Submitting&#8230; Enjoy!</h1>
Once InFormEnter is activated you would notice a blue icon near each form field. Now all you need to do is click the icon and select the entry! As simple as that!<br /><img src="http://www.productivedreams.com/wp-content/uploads/2010/03/start-submission.jpg" alt="start-submission" title="start-submission" width="508" height="245" class="alignnone size-full wp-image-1738" /><br /><br />Do you already follow a better procedure? If so please share it here.<div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/" title="A simple CSS based usability tip for search buttons">A simple CSS based usability tip for search buttons</a></li><li><a href="http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/" title="3 common requirements/issues and the corresponding Jquery solutions for your next web project">3 common requirements/issues and the corresponding Jquery solutions for your next web project</a></li><li><a href="http://www.productivedreams.com/20-sites-to-submit-your-logos/" title="22 Sites &#038; Galleries to submit your logos">22 Sites &#038; Galleries to submit your logos</a></li><li><a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/" title="IE CSS hack without using any hacks!">IE CSS hack without using any hacks!</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Everything you need to know about Parallax</title>
		<link>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/</link>
		<comments>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 18:50:04 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Trends]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=1374</guid>
		<description><![CDATA[1. What is parallax?If you are looking for a definition of parallax, here it goes. As far as the web (especially design) industry is concerned, parallax is the arrangement/animation of images in a way that lets you feel the distance between them. For example, imagine that you are looking through the window of a moving [...]]]></description>
			<content:encoded><![CDATA[<h1>1. What is parallax?</h1><p>If you are looking for a definition of parallax, <a href="http://en.wikipedia.org/wiki/Parallax">here it goes</a>. As far as the web (especially design) industry is concerned, <strong>parallax is the arrangement/animation of images in a way that lets you feel the distance between them</strong>. </p><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/parallax_post.jpg" alt="Everything about parallax" title="Everything about parallax" width="508" height="201" class="alignnone size-full wp-image-1446" /><p>For example, imagine that you are looking through the window of a moving vehicle. You will see the objects closer to you moving faster compared to the distant ones. The sun stays still while the trees, buildings and other objects move.</p><p>In this post I would like to walk you through different posts, examples and tutorials that would help you achieve this effect. </p><p>This technique was initially used in 2d video games and now mostly seen in single page portfolio websites and website headers.</p><span id="more-1374"></span><br /><h1>2. Parallax in use</h1><p>I would like to show you a few hand-picked websites that uses parallax before I proceed.</p><p><strong>Eric J</strong> &#8211; This is one of my favorite websites using Parallax in the way it should be. The motion of the wheel and the smoke that comes out of the silencer as the scooter moves  adds up to the parallax feel.</p>
<a href="http://ericj.se/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/ericj.jpg" alt="ericj" title="Ericj - javascript parallax" width="508" height="264" class="alignnone size-full wp-image-1386" /></a><p><strong>Markus Neidel</strong> &#8211; This is an awesome 3d vertical parallax (flash).</p>
<a href="http://www.markus-neidel.de/wayofthesheep.htm"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/markus-neidel.jpg" alt="Markus Neidel - Flash" title="markus-neidel" width="508" height="264" class="alignnone size-full wp-image-1388" /></a><p><strong>Silverback</strong> &#8211; To see the effect in this site, you would have to resize your browser window and notice the header region.</p>
<a href="http://www.silverbackapp.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/silverback.jpg" alt="Silverback - CSS Background parallax" title="silverback" width="508" height="264" class="alignnone size-full wp-image-1389" /></a><p><strong>Umaghet Zeggen</strong> &#8211; All you need to do is move your mouse (towards any direction).</p>
<a href="http://www.umaghetzeggen.nl"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/umaghetzeggen.jpg" alt="http://www.umaghetzeggen.nl/" title="umaghetzeggen" width="508" height="264" class="size-full wp-image-1391" /></a><p><strong>Squaredeye</strong> &#8211; Resize your browser window and notice the movement of clouds in the header. A css based parallax.</p>
<a href="http://squaredeye.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/squaredeye.jpg" alt="Squaredeye Header" title="Squaredeye Header" width="508" height="264" class="alignnone size-full wp-image-1394" /></a><p><strong>Dezignus</strong> &#8211; Move your mouse over the header region (towards any direction).</p>
<a href="http://dezignus.com/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/designus.jpg" alt="designus" title="designus" width="508" height="264" class="alignnone size-full wp-image-1397" /></a><br /><h1>3. Now, how do I create Parallax?</h1><p>Let&#8217;s see how to create this effect using javascript, flash and other frameworks.</p>
<h1>Using JQuery</h1><p>You&#8217;d probably be aware, I am  a JQuery fan and for that reason I would like to first list down the methods using JQuery to achieve the Parallax effect.</p><p>These tutorials use <strong>jparallax</strong> &#8211; a jQuery plugin to create parallax</p>
<a href="http://webdev.stephband.info/parallax.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/jparallax.jpg" alt="jParallax - A jQuery Parallax Plugin" title="jParallax - A jQuery Parallax Plugin" width="508" height="264" class="alignnone size-full wp-image-1402" /></a><p>Create a Parallax Website Header</p><a href="http://progtuts.info/186/create-a-parallax-website-header/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/progtuts.jpg" alt="progtuts - jParallax header" title="progtuts - jParallax header" width="508" height="264" class="alignnone size-full wp-image-1411" /></a><br /><h1>Using Mootools</h1><p>Not familiar with JQuery huh? Here goes a tutorial that uses mParallax a mootools adaptation similar to jParallax.</p><a href="http://www.piksite.com/mParallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/piksite.jpg" alt="piksite mParallax" title="piksite" width="508" height="264" class="alignnone size-full wp-image-1415" /></a><p>Another demo using Mootools</p>
<a href="http://www.csslab.cl/ejemplos/parallax_mootools/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/csslab.jpg" alt="csslab - Mootools" title="csslab - Mootools" width="508" height="264" class="alignnone size-full wp-image-1417" /></a><br /><h1>Using Scriptaculous</h1><p>This one uses scriptaculous another popular javascript framework.</p>
<a href="http://offtheline.net/2008/2/28/parallax-animation-with-css-js"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/offtheline.jpg" alt="offtheline - Scriptaculous" title="offtheline - Scriptaculous" width="508" height="264" class="alignnone size-full wp-image-1419" /></a><br /><h1>Using Javascript &#8211; A Vertical Parallax</h1>
A vertical parallax based on javascript.<br /><a href="http://inner.geek.nz/javascript/parallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/innergeek.jpg" alt="innergeek" title="innergeek" width="508" height="264" class="alignnone size-full wp-image-1424" /></a><br /><h1>Using pure CSS</h1><p>Unlike the ones above, this would work only when the user re-sizes the browser window. This is achieved using css positioning. </p><p>A tutorial on how to create the <a href="http://www.silverbackapp.com/">Silverback Parallax</a> (shown above) using CSS.</p>
<a href="http://carsonified.com/blog/design/how-to-recreate-silverbacks-parallax-effect/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/carsonified.jpg" alt="carsonified" title="carsonified" width="508" height="264" class="alignnone size-full wp-image-1426" /></a><p>Examples of and How to Create the CSS Parallax Effect</p>
<a href="http://forthelose.org/examples-of-and-how-to-do-the-css-parallax-effect"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/forthelose.jpg" alt="forthelose" title="forthelose" width="508" height="264" class="alignnone size-full wp-image-1429" /></a><p>This is a really interesting one! A parallax illusion with CSS</p><a href="http://www.marcofolio.net/css/a_parallax_illusion_with_css_the_horse_in_motion.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/marcofolio.jpg" alt="marcofolio - Parallax Illusion" title="marcofolio - Parallax Illusion" width="508" height="264" class="alignnone size-full wp-image-1431" /></a><br /><h1>Parallax using Flash</h1><p>A step by step tutorial by webdesignerwall.</p><a href="http://www.webdesignerwall.com/tutorials/parallax-gallery/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/webdesignerwall.jpg" alt="webdesignerwall" title="webdesignerwall" width="508" height="264" class="alignnone size-full wp-image-1434" /></a><p> Creating parallax with flash cs4</p>
<a href="http://www.webdesign.org/web/flash-&#038;-swish/flash-tutorials/create-a-classic-3d-effect--parallax--with-flash-cs4.17899.html"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/webdesignorg.jpg" alt="webdesignorg" title="webdesignorg" width="508" height="264" class="alignnone size-full wp-image-1436" /></a><br /><h1>Are you an AfterEffects freak?</h1><p>If so, this tutorial is for you. Create a Realistic Camera Move with Parallax.</p>
<a href="http://ae.tutsplus.com/tutorials/vfx/create-a-realistic-camera-move-with-parallax/"><img src="http://www.productivedreams.com/wp-content/uploads/2009/10/tutplus.jpg" alt="tutplus - Aftereffects Parallax" title="tutplus - Aftereffects Parallax" width="508" height="264" class="alignnone size-full wp-image-1439" /></a><p>So, that&#8217;s all about Parallax. I hope this post was informative</p><div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/" title="3 common requirements/issues and the corresponding Jquery solutions for your next web project">3 common requirements/issues and the corresponding Jquery solutions for your next web project</a></li><li><a href="http://www.productivedreams.com/web-design-trend-paper-planes/" title="Trend Review: Paper Planes">Trend Review: Paper Planes</a></li><li><a href="http://www.productivedreams.com/trend-review-coffee-stains-webdesign/" title="Trend Review: Coffee Stains in Web Design">Trend Review: Coffee Stains in Web Design</a></li><li><a href="http://www.productivedreams.com/web20-rockets-and-gliders/" title="Trend Review: Web2.0 Rockets and Gliders in Webdesign!">Trend Review: Web2.0 Rockets and Gliders in Webdesign!</a></li><li><a href="http://www.productivedreams.com/parachutes-an-emerging-trend-in-webdesign/" title="Parachutes/Hot Air Balloons &#8211; An Emerging Trend in Webdesign">Parachutes/Hot Air Balloons &#8211; An Emerging Trend in Webdesign</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/everything-you-need-to-know-about-parallax/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>10 CSS properties that &#8216;were&#8217; impossible to implement in IE6</title>
		<link>http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/</link>
		<comments>http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 19:53:49 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Hacks]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=1090</guid>
		<description><![CDATA[Personally I hate IE6, and never wanted to support it. Unfortunately, a percentage of internet users still use IE6. Sometimes even customers get insistent about how their page should look in IE6. Anyways, let&#8217;s hope IE dies soon!<br />This post is about 10 commonly used css properties that were impossible to implement in IE6. While redesigning [...]]]></description>
			<content:encoded><![CDATA[<p>Personally I hate IE6, and never wanted to support it. Unfortunately, a percentage of internet users still use IE6. Sometimes even customers get insistent about how their page should look in IE6. Anyways, let&#8217;s hope IE dies soon!</p>
<img src="http://www.productivedreams.com/wp-content/uploads/2009/06/ie.jpg" alt="10 IE6 CSS Hacks" title="10 IE6 CSS Hacks" width="508" height="258" class="alignnone size-full wp-image-1142" /><p>This post is about 10 commonly used css properties that were impossible to implement in IE6. While redesigning ProductiveDreams, I came across a few css compatibility issues with IE6 and had to spend hours searching the solution for each issue. </p><p>So I just thought of putting them together to save your time. These css hacks (I would rather call them <strong>&#8217;solutions&#8217;</strong> since, not all of them are purely css based) solves the major compatibility issues in IE6.</p>
<h1>1. Rounded or Curved Corners</h1><p>As you would know, all modern browsers support border radius. Curved corner is something that was merely impossible to achieve in IE6. Recently I came across an htc file (especially for IE) developed by Remiz from HTMLRemix.com, which solves this issue.</p><p><strong>The first thing to do while using htc is to add the correct MIME type for htc behavior on your server. This is REALLY important before you proceed.</strong> The following are steps:</p>
1. Go to your cpanel and click the MIME Types link<br />2. Under MIME Type, add <strong>text/x-component</strong><br />3. Under Extensions, add <strong>htc</strong><br />4. Restart Apache Web server<p>For more details on how to add MIME type visit <a href="http://support.microsoft.com/kb/306231">Microsoft Support</a></p><p>All you need to do is download the htc from <a href="http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser">HTMLremix</a> or <a href="http://code.google.com/p/curved-corner/">Alternate Link</a> and include the following code in your CSS.</p><div class="downloadinfo"><br /><a href="http://www.htmlremix.com/files/20080924-border-radius.zip" class="dlimg">Border Radius</a><br /><a href="http://www.productivedreams.com/workshop/border_radius/" title="CSS Rounded Corners" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">behavior:url(border-radius.htc);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p><strong>Jquery Alternative:</strong><a href="http://www.malsup.com/jquery/corner/"> jQuery Corner</a> a jQuery plugin that creates crossbrowser compatible rounded corners!</p>
<h1>2. The popular PNG transparency issue</h1><p>Every designer would have faced this issue, obviously! Though there are a number of javascript based solutions, I couldn't find anything that supports background position. As far as I know all JS based solutions end up with the same result. This is something that worked flawlessly for me. All other solutions are based on this filter.</p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=png_transparency.zip" title=" downloaded 763 times" ><img src="" alt="Download IE Png transparency fix " /></a><br /><a href="http://www.productivedreams.com/workshop/png_transparency/" title="PNG Transparency" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">_background:none;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='image_name.png', sizingMethod='scale');</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p><strong>HTC Alternative:</strong>If the solution above doesn't work for you, you may try this <a href="http://www.twinhelix.com/css/iepngfix/">htc</a> alternate. </p><p><span class="strike"><strong>Known Issues:</strong><br />1. Doesn't support CSS Sprites: If you are using sprites, then just forget this hack. Background positions doesn't work with PNG hacks .</span></p><p>If you need background-position support for PNG, then go for <a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/">DD_belated</a></p><p>The best solution is to use a .gif or png-8. Check out <a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/">the best way to do this</a> without using hacks!</p>
<h1>3. Opacity</h1><p>This is pretty much straight forward and easy to achieve compared to the other hacks. </p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=opacity.zip" title=" downloaded 499 times" ><img src="" alt="Download Opacity in IE6 " /></a><br /><a href="http://www.productivedreams.com/workshop/opacity/" title="Opacity for IE6" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.opacity_div {</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">  filter: alpha(opacity = 50);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<h1>4. Fixed position</h1><p>All browsers support the css property 'position:fixed', but not IE6. I had to find a solution for this since the social icons in this blog are having a fixed position.</p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=fixed_position.zip" title=" downloaded 530 times" ><img src="" alt="Download Fixed position for IE6 " /></a><br /><a href="http://www.productivedreams.com/workshop/fixed_position/" title="Fixed Position" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">* html .fixed_div{ </pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">position: absolute; /* position fixed for IE6 */ </pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">top: expression(104+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); </pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">left: expression(15+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px'); </pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">} </pre></td></tr><tr><td class="devcodelines" width="1%">7</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p>Just change the top(104) and left(15) values, to position the element.</p><p>This method works very well, but you would notice a jerk while scrolling the page. So here goes a fix for that.</p>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">* html { </pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">background-image: url(image.jpg); </pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">} </pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p>All you need is a 1px x 1px image. This might sound weird but it works!</p>
<h1>5. Min-width &#038; Max-width</h1><p>This is simple as well and was already <a href="http://www.productivedreams.com/min-width-issue-in-ie6/">posted on ProductiveDreams</a></p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=min_max_width.zip" title=" downloaded 446 times" ><img src="" alt="Download Minimum and maximum width " /></a><br /><a href="http://www.productivedreams.com/workshop/min_max_width/" title="Minimum and Maximum Width" class="demo">Preview</a><br /></div>
<strong>Min-width:</strong><br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">width: expression(document.body.clientWidth &lt; 1000? &quot;1000px&quot; : &quot;auto&quot;);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<strong>Max-width:</strong><br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">width: expression(document.body.clientWidth &gt; 1000? &quot;1000px&quot; : &quot;auto&quot;);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p><strong>Jquery Alternative:</strong> This is an alternative solution for the hack above.  <a href="http://davecardwell.co.uk/javascript/jquery/plugins/jquery-minmax/">JQminmax</a> is a cool plugin which allows you to set minimum and maximum values for both width and height. </p>
<h1>6. Hover for non anchor elements</h1><p>Unfortunately, IE6 supports :hover, only for anchor tags. That means css based dropdowns would not work in IE6. CSShover.htc is the best solution for this. You may download the htc file from <a href="http://www.xs4all.nl/~peterned/csshover.html#changes">xs4all.nl</a></p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=css_hover.zip" title=" downloaded 551 times" ><img src="" alt="Download CSS hover " /></a><br /><a href="http://www.productivedreams.com/workshop/hover/" title="CSS hover" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">body { </pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">behavior: url(&quot;csshover3.htc&quot;); </pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">} </pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><p>As I mentioned previously, don't forget to add the correct MIME type for htc behavior on your server. This is the key.</p>
<h1>7. Min-height &#038; Max-height</h1><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=min_max_height.zip" title=" downloaded 409 times" ><img src="" alt="Download Minimum and maximum height " /></a><br /><a href="http://www.productivedreams.com/workshop/min_max_height/" title="Minimum and Maximum Height" class="demo">Preview</a><br /></div>
<strong>Minimum height:</strong> <p>This is not really a hack since it uses valid css.</p>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">min-height: 140px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">height: auto !important;</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">height: 140px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">7</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<strong>Maximum height:</strong><br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline"> height: expression( this.scrollHeight &gt; 199 ? &quot;200px&quot; : &quot;auto&quot; );</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<h1>8. Bicubic scaling for images</h1><p>One line code that solves the image scaling issue in IE6 and 7. Hats off to Chris Coyier for coming up with this <a href="http://css-tricks.com/ie-fix-bicubic-scaling-for-images/">solution</a>.</p>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">img {</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline"> -ms-interpolation-mode: bicubic; </pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<h1>9. Negative text indent for input buttons</h1><p>Negative text indent is normally used to hide the text value inside buttons, which lets you use custom background images for them. For some reason, IE doesn't support negative text indent for input buttons. For more details about this issue <a href="http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/">check out this post</a></p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=pd_textindent_ie.zip" title="Version 1.0 downloaded 964 times" ><img src="" alt="Download IE text-indent issue Version 1.0" /></a><br /><a href="http://productivedreams.com/workshop/negative_text_indent/" title="Negative text indent" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">input.button {</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">width:114px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">height:37px;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">border: none;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background: transparent url(images/button_image.gif) no-repeat center;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">overflow: hidden;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">text-indent: -999px;</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<h1>10. Text shadow</h1><p>The shadow filter is one of the useful filters for IE.</p><div class="downloadinfo"><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=text_shadow.zip" title=" downloaded 460 times" ><img src="" alt="Download Text shadow for IE " /></a><br /><a href="http://www.productivedreams.com/workshop/text_shadow/" title="Text Shadow in IE" class="demo">Preview</a><br /></div>
<pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">.text_shadow{</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">filter: Shadow(Color=#999999, Direction=135, Strength=5);</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">4</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">height: 1%;</pre></td></tr><tr><td class="devcodelines" width="1%">5</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">6</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre><div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/" title="A simple CSS based usability tip for search buttons">A simple CSS based usability tip for search buttons</a></li><li><a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/" title="IE CSS hack without using any hacks!">IE CSS hack without using any hacks!</a></li><li><a href="http://www.productivedreams.com/min-width-issue-in-ie6/" title="Min-width issue in IE6">Min-width issue in IE6</a></li><li><a href="http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/" title=" IE not interpreting text-indent on submit buttons ?"> IE not interpreting text-indent on submit buttons ?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
		</item>
		<item>
		<title>IE CSS hack without using any hacks!</title>
		<link>http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/</link>
		<comments>http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 10:33:19 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Hacks]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=201</guid>
		<description><![CDATA[A few days back while working for a MAJOR client (sorry, can&#8217;t mention their name), I discovered something new (I hope it&#8217;s new ) &#8211; A pure CSS based image replacement solution for IE.  This method is helpful especially to solve the PNG issue in IE6. I know there are many CSS hacks available [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back while working for a MAJOR client (sorry, can&#8217;t mention their name), I discovered something new (I hope it&#8217;s new ) &#8211; A pure CSS based image replacement solution for IE.  This method is helpful especially to solve the PNG issue in IE6. I know there are many CSS hacks available out there to solve the PNG transparency issue, but this method doesn&#8217;t need any hacks!! Interesting isn&#8217;t it?</p>
<h1><strong>Step-1:</strong> Let&#8217;s review the HTML part first.</h1>
<pre class="devcodeblock" title="HTML"><table class="devcodetools"><tbody><tr><td>HTML</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;html&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;head&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;title&gt;ProductiveDreams&lt;/title&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;link href=”style.css” rel=”stylesheet” type=”text/css”/&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/head&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;body&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;div class=”bg-image”&gt;&lt;/div&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/body&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines" width="1%">13</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/html&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">14</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
The following are the images that I've used for this tutorial. The image without saturation is a .gif and the colored one is a .png. You may right click and save the image.<br /><br /><div id="attachment_206" class="wp-caption alignnone" style="width: 144px"><a href="http://www.productivedreams.com/wp-content/uploads/2008/10/pd1.png"><img class="size-medium wp-image-206" title="ProductiveDreams Logo" src="http://www.productivedreams.com/wp-content/uploads/2008/10/pd1.png" alt="PNG Image" width="134" height="134" /></a><p class="wp-caption-text">Colorful PNG Image</p></div><br /><br /><div id="attachment_209" class="wp-caption alignnone" style="width: 144px"><a href="http://www.productivedreams.com/wp-content/uploads/2008/10/pd.gif"><img class="size-medium wp-image-209" title="ProductiveDreams Logo" src="http://www.productivedreams.com/wp-content/uploads/2008/10/pd.gif" alt="Desaturated GIF Image" width="134" height="134" /></a><p class="wp-caption-text">Desaturated GIF Image</p></div><br /><h1><strong>Step-2:</strong> The stylesheet</h1>
I included the following code in the stylesheet<br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline">body{</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background:#000;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">text-align:center;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">div.bg-image{</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">background:transparent url(images/pd.png) no-repeat center !important;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">width:134px;</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">height:134px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr></table></div></pre>
Let me walk you through the CSS. The first part simply applies a background color to the body and center aligns the div element. In the second part, I've specified the width and height of the div (134px) based on the image dimensions and have given the .png as the background image. Everything works fine?<br /><h1><strong>Step-3:</strong> Solution for IE</h1>
This the most interesting part that does the magic.<br /><br />I added another line of CSS code just below<br /><strong>background:transparent url(images/pd.png) no-repeat center !important</strong>;<br />and the following is the code<br /><strong>background-image:url(images/pd.gif);</strong><br /><br />Check out the result in IE! Awesome.... isn't it? In all other browsers except IE you will see the colorful png image.<br /><h1>Consolidating the entire thing</h1>
So. the final css would look like:<br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline">body{</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background:#000;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">text-align:center;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&nbsp;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">div.bg-image{</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">background:transparent url(images/pd.png) no-repeat center !important;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">background-image:url(images/pd.gif);</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">width:134px;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">height:134px;</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">margin:0px auto;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">}</pre></td></tr></table></div></pre>
<br />For your ease, I have attached the sample files as a zip. Feel free to download it <span> <img src='http://www.productivedreams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span> and do let me know your feedbacks.<br /><br /><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=pd_css_solution.zip" title=" downloaded 1190 times" ><img src="" alt="Download CSS Solution for image replacement " /></a><div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/" title="A simple CSS based usability tip for search buttons">A simple CSS based usability tip for search buttons</a></li><li><a href="http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/" title="10 CSS properties that &#8216;were&#8217; impossible to implement in IE6">10 CSS properties that &#8216;were&#8217; impossible to implement in IE6</a></li><li><a href="http://www.productivedreams.com/min-width-issue-in-ie6/" title="Min-width issue in IE6">Min-width issue in IE6</a></li><li><a href="http://www.productivedreams.com/common-requirements-for-website-design-and-corresponding-jquery-solutions/" title="3 common requirements/issues and the corresponding Jquery solutions for your next web project">3 common requirements/issues and the corresponding Jquery solutions for your next web project</a></li><li><a href="http://www.productivedreams.com/making-gallery-submissions-easy-for-designers/" title="Making gallery submissions easy for designers">Making gallery submissions easy for designers</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Min-width issue in IE6</title>
		<link>http://www.productivedreams.com/min-width-issue-in-ie6/</link>
		<comments>http://www.productivedreams.com/min-width-issue-in-ie6/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 09:07:35 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Workshop]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Hacks]]></category>

		<guid isPermaLink="false">http://www.productivedreams.com/?p=218</guid>
		<description><![CDATA[This is something for those who care for IE6 and not W3C Standards. Recently I worked on a project, for which the layout was liquid and one of the requirements was to use a minimum width of 1000px. Is that a problem? Not at all.The problem was to make it compatible on all major browsers, [...]]]></description>
			<content:encoded><![CDATA[This is something <strong>for those who care for IE6 and not W3C Standards.</strong> Recently I worked on a project, for which the layout was liquid and one of the requirements was to use a <strong>minimum width</strong> of 1000px. Is that a problem? Not at all.<br /><br />The problem was to make it compatible on all major browsers, including IE6 !!!!!. I wonder why people still use IE.<br /><br />As usual, I started searching for the solution on the right top of my Firefox window (yes, google!) and found a few websites which had discussions on the same topic. Most of them had lengthy posts and not the real solution. After going through a couple of sites, I concluded with the following solution. I hope this would help those who come across the same problem.<br /><pre class="devcodeblock" title="CSS"><table class="devcodetools"><tbody><tr><td>CSS</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">1</td><td class="devcodelinesarea"><pre class="devcode devcodeline">.div_class_name{</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">2</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">width: expression(document.body.clientWidth &lt; 1002? &quot;1000px&quot; : &quot;auto&quot;);</pre></td></tr><tr><td class="devcodelines" width="1%">3</td><td class="devcodelinesarea"><pre class="devcode devcodeline">}</pre></td></tr></table></div></pre>
Just add the above line in your CSS. Replace 1000px with the min-width value and replace 1002 with a value slightly greater than the min-width. To define the max-width, just replace the "&lt;" with "&gt;".<br /><br /><h1>Known Issues:</h1><ul><li>Only works with JavaScript enabled browsers</li><li>Not W3C valid</li>
</ul>
<br />That's all! I don't want this post to be lengthy like the others I went through <span> <img src='http://www.productivedreams.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span><div class="relposts"><h3>RELATED POSTS</h3><ul class="related_post"><li><a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/" title="A simple CSS based usability tip for search buttons">A simple CSS based usability tip for search buttons</a></li><li><a href="http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/" title="10 CSS properties that &#8216;were&#8217; impossible to implement in IE6">10 CSS properties that &#8216;were&#8217; impossible to implement in IE6</a></li><li><a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/" title="IE CSS hack without using any hacks!">IE CSS hack without using any hacks!</a></li><li><a href="http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/" title=" IE not interpreting text-indent on submit buttons ?"> IE not interpreting text-indent on submit buttons ?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/min-width-issue-in-ie6/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
