<?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; CSS</title>
	<atom:link href="http://www.productivedreams.com/tag/css/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>Wed, 04 Jan 2012 17:45:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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.comreams/?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 &#8230; <a href="http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/">Read more <span class="meta-nav">&#187;</span></a>]]></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>
<p><span id="more-1840"></span><br />
<iframe src="http://www.productivedreams.com/workshop/usable-search/" height="40px" scrolling="no" style="overflow:hidden;"><br />
</iframe></p>
<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>
<p><code lang="css"><br />
input.submit{<br />
width:16px;<br />
height:16x;<br />
display:block;<br />
overflow:hidden;<br />
text-indent:-999px; /* To remove any default text on the button*/<br />
line-height:16px; /* required for safari */<br />
background:url(search-sprite.gif) no-repeat 0 0; /* This will display the search icon by default */<br />
cursor:pointer; /* Hand cursor for the normal state */<br />
border:none;<br />
padding:0;<br />
}</p>
<p>input.submit:hover{<br />
background-position: 0 -16px; /* This will display the dark search icon on hover */<br />
}</p>
<p>input.submit:active{<br />
background-position: 0 -32px; /* And finally, this is the one that shows the loader */<br />
cursor:wait; /* Shows the wait cursor on click */<br />
}<br />
</code>
<div class="downloadinfo">
<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 2209 times" ><img src="" alt="Download CSS Based Usability Tip for Search Buttons Version 1.0" /></a>
</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&#8217;t forget to put in your thoughts and ideas.</p>
<div class="sponad">Get your <a href="http://www.test-king.com/cert-MCITP.htm">mcitp certification</a> as well as <a href="http://www.test-king.com/cert-MCTS.htm">mcts certification</a> and <a href="http://www.test-king.com/vendor-Oracle.htm">oracle certification</a> in easy and fast way and get highest score using our self paced training products.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/' rel='bookmark' title='IE not interpreting text-indent on submit buttons ?'>IE not interpreting text-indent on submit buttons ?</a></li>
<li><a href='http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/' rel='bookmark' 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/' rel='bookmark' title='IE CSS hack without using any hacks!'>IE CSS hack without using any hacks!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/simple-css-based-usability-tip-for-search-buttons/feed/</wfw:commentRss>
		<slash:comments>31</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.comreams/?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! This post &#8230; <a href="http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/">Read more <span class="meta-nav">&#187;</span></a>]]></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>
<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>
<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>&#8216;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>
<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>
<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">
<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>
</div>
<p><code lang="css"><br />
.div_class_name{<br />
behavior:url(border-radius.htc);<br />
}<br />
</code></p>
<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&#8217;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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=png_transparency.zip" title=" downloaded 959 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>
</div>
<p><code lang="css"><br />
.class_name{<br />
_background:none;<br />
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='image_name.png', sizingMethod='scale');<br />
}<br />
</code></p>
<p><strong>HTC Alternative:</strong>If the solution above doesn&#8217;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&#8217;t support CSS Sprites: If you are using sprites, then just forget this hack. Background positions doesn&#8217;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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=opacity.zip" title=" downloaded 597 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>
</div>
<p><code lang="css"><br />
.opacity_div {<br />
  filter: alpha(opacity = 50);<br />
}<br />
</code></p>
<h1>4. Fixed position</h1>
<p>All browsers support the css property &#8216;position:fixed&#8217;, 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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=fixed_position.zip" title=" downloaded 660 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>
</div>
<p><code lang="css"><br />
* html .fixed_div{<br />
position: absolute; /* position fixed for IE6 */<br />
top: expression(104+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px');<br />
left: expression(15+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');<br />
}<br />
</code></p>
<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>
<p><code lang="css"><br />
* html {<br />
background-image: url(image.jpg);<br />
}<br />
</code></p>
<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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=min_max_width.zip" title=" downloaded 538 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>
</div>
<p><strong>Min-width:</strong><br />
<code lang="css"><br />
.div_class_name{<br />
width: expression(document.body.clientWidth < 1000? "1000px" : "auto");<br />
}<br />
</code><br />
<strong>Max-width:</strong><br />
<code lang="css"><br />
.div_class_name{<br />
width: expression(document.body.clientWidth > 1000? "1000px" : "auto");<br />
}<br />
</code></p>
<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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=css_hover.zip" title=" downloaded 666 times" ><img src="" alt="Download CSS hover " /></a><br />
<a href="http://www.productivedreams.com/workshop/hover/" title="CSS hover" class="demo">Preview</a>
</div>
<p><code lang="css"><br />
body {<br />
behavior: url("csshover3.htc");<br />
}<br />
</code></p>
<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">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=min_max_height.zip" title=" downloaded 496 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>
</div>
<p><strong>Minimum height:</strong> </p>
<p>This is not really a hack since it uses valid css.</p>
<p><code lang="css"><br />
.div_class_name{<br />
min-height: 140px;<br />
height: auto !important;<br />
height: 140px;<br />
}<br />
</code><br />
<strong>Maximum height:</strong><br />
<code lang="css"><br />
.div_class_name{<br />
 height: expression( this.scrollHeight > 199 ? "200px" : "auto" );<br />
}<br />
</code></p>
<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>
<p><code lang="css"><br />
img {<br />
 -ms-interpolation-mode: bicubic;<br />
}<br />
</code></p>
<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">
<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 1637 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>
</div>
<p><code lang="css"><br />
input.button {<br />
width:114px;<br />
height:37px;<br />
border: none;<br />
background: transparent url(images/button_image.gif) no-repeat center;<br />
overflow: hidden;<br />
text-indent: -999px;<br />
}<br />
</code></p>
<h1>10. Text shadow</h1>
<p>The shadow filter is one of the useful filters for IE.</p>
<div class="downloadinfo">
<a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=text_shadow.zip" title=" downloaded 578 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>
</div>
<p><code lang="css"><br />
.text_shadow{<br />
filter: Shadow(Color=#999999, Direction=135, Strength=5);<br />
height: 1%;<br />
}<br />
</code></p>
<div class="sponad">We offer complete collection of practice questions and answers for all networking credentials including <a href="http://www.realtests.com/training/CCNA.htm">ccna</a> voice, <a href="http://www.realtests.com/training/CCNP.htm">ccnp</a> and <a href="http://www.realtests.com/training/CCIE.htm">ccie</a>.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/' rel='bookmark' 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/' rel='bookmark' 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/' rel='bookmark' title='IE not interpreting text-indent on submit buttons ?'>IE not interpreting text-indent on submit buttons ?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/properties-that-were-impossible-to-implement-in-ie6/feed/</wfw:commentRss>
		<slash:comments>111</slash:comments>
		</item>
		<item>
		<title>IE not interpreting text-indent on submit buttons ?</title>
		<link>http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/</link>
		<comments>http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 20:07:55 +0000</pubDate>
		<dc:creator>Gopal Raju</dc:creator>
				<category><![CDATA[Workshop]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.productivedreams.comreams/?p=610</guid>
		<description><![CDATA[I&#8217;ve worked on many projects where in I had to style the form/input buttons using custom background images. That is, I had to hide the default text of the button. It&#8217;s not a big deal, I know. But it is, &#8230; <a href="http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="post-contents">I&#8217;ve worked on many projects where in I had to style the form/input buttons using custom background images. That is, I had to hide the default text of the button. It&#8217;s not a big deal, I know. But it is, when it comes to IE. Let&#8217;s review this in detail.</p>
<p>The following image(button background) has been used for this tutorial. You may right click and save it.</p>
<p><span><img title="submit_btn" src="http://www.productivedreams.com/wp-content/uploads/2008/12/submit_btn.gif" alt="Sample Image" width="114" height="37" /></span></p>
<h1><strong>1: HTML Code</strong></h1>
<p>Create a HTML page and insert a button with a class, &#8220;button&#8221;.<br />
<code lang="html"><br />
<html><br />
<head></p>
<link href=”style.css” rel=”stylesheet” type=”text/css”/>
</head><br />
<body></p>
<input type=”submit” value=”Submit” class=”button”>
</body><br />
</html><br />
</code></p>
<h1><strong>2: Style Sheet</strong></h1>
<p>I included the following in my stylesheet.<br />
<code lang="css"><br />
input.button {<br />
width:114px;<br />
height:37px;<br />
border: none;<br />
background: transparent url(images/submit_btn.gif) no-repeat center;<br />
overflow: hidden;<br />
text-indent: -999px;<br />
}<br />
</code><br />
Fixed width, overflow:hidden and negative text indent will hide the text of any button. This works well in all browsers except IE.</p>
<h1><strong>3: The Problem</strong></h1>
<p>The image below shows how IE displays the button.</p>
<p><span><img title="submit_btn_ie" src="http://www.productivedreams.com/wp-content/uploads/2008/12/submit_btn_ie.gif" alt="IE Issue" width="114" height="37" /></span></p>
<p>You can see the black text within the button which looks odd.</p>
<h1><strong>4: IE Fix</strong></h1>
<p>So finally, here goes the three line CSS code that does the work for you.<br />
Modify your CSS as shown below.<br />
<code lang="css"><br />
input.button{<br />
width:114px;<br />
height:37px;<br />
border: none;<br />
background: transparent url(images/submit_btn.gif) no-repeat center;<br />
overflow: hidden;<br />
text-indent: -999px;</p>
<p>font-size: 0;<br />
display:block;<br />
line-height: 0;<br />
}</code></p>
<h1><strong>5: How it works</strong></h1>
<p>Let&#8217;s see how it works.</p>
<p><strong>font-size:0</strong> is used to reduce the font size and works well in IE7. But even after adding this line, you would notice a black line(which is basically the text) on the center of the button in IE6.</p>
<p><strong>display:block</strong> Negative text-indent works in IE only if this is added.</p>
<p><strong>line-height: 0</strong> Another fix for IE6.</p>
<p>I have included the sample files for your reference.</p>
<div class="downloadinfo"><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 1637 times" ><img src="" alt="Download IE text-indent issue Version 1.0" /></a></div>
</div>
<div class="sponad">No matter you are interested in <a href="http://www.realtests.com/training/CCDA.htm">ccda</a> or <a href="http://www.realtests.com/training/CCVP.htm">ccvp</a>, pass your networking exam in days using our <a href="http://www.realtests.com/training/CCDE.htm">ccde</a> dumps and other networking resources.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/' rel='bookmark' 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/' rel='bookmark' title='Min-width issue in IE6'>Min-width issue in IE6</a></li>
<li><a href='http://www.productivedreams.com/another-set-of-price-tag-based-designs/' rel='bookmark' title='Trend Review: Price Tags (Part 2)'>Trend Review: Price Tags (Part 2)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/ie-not-intepreting-text-indent-on-submit-buttons/feed/</wfw:commentRss>
		<slash:comments>143</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>

		<guid isPermaLink="false">http://www.productivedreams.comreams/?p=201</guid>
		<description><![CDATA[A few days back while working for a MAJOR client (sorry, can&#8217;t mention their name, but really wished to), I discovered something new (I hope it&#8217;s new ) &#8211; A pure CSS based image replacement solution for IE. This method &#8230; <a href="http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few days back while working for a MAJOR client (sorry, can&#8217;t mention their name, but really wished to), 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>
<p><code lang="html"><br />
<html></p>
<p><head></p>
<link href=”style.css” rel=”stylesheet” type=”text/css”/>
</head></p>
<p><body></p>
<div class=”bg-image”></div>
<p></body></p>
<p></html><br />
</code><br />
The following are the images that I&#8217;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.</p>
<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>
<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>
<h1><strong>Step-2:</strong> The stylesheet</h1>
<p>I included the following code in the stylesheet<br />
<code lang="css">body{<br />
background:#000;<br />
text-align:center;<br />
}</p>
<p>div.bg-image{<br />
background:transparent url(images/pd.png) no-repeat center !important;<br />
width:134px;<br />
height:134px;<br />
}</code><br />
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&#8217;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?</p>
<h1><strong>Step-3:</strong> Solution for IE</h1>
<p>This the most interesting part that does the magic.</p>
<p>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></p>
<p>Check out the result in IE! Awesome&#8230;. isn&#8217;t it? In all other browsers except IE you will see the colorful png image.</p>
<h1>Consolidating the entire thing</h1>
<p>So. the final css would look like:<br />
<code lang="css">body{<br />
background:#000;<br />
text-align:center;<br />
}</p>
<p>div.bg-image{<br />
background:transparent url(images/pd.png) no-repeat center !important;<br />
background-image:url(images/pd.gif);<br />
width:134px;<br />
height:134px;<br />
margin:0px auto;<br />
}</code></p>
<p>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.</p>
<div class="downloadinfo"><a class="downloadlink dlimg" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=pd_css_solution.zip" title=" downloaded 1360 times" ><img src="" alt="Download CSS Solution for image replacement " /></a></div>
<div class="sponad">Learn web page design with <a href="http://www.actualtests.com/exam-NS0-154.htm">NS0-154</a> online course. Get the <a href="http://www.testkingsite.com/microsoft/70-648.html">70-648</a> tutorials and <a href="http://www.certkiller.com/exam-70-653.htm">70-653</a> guide to cover a wide range of design topics.<br/><br />
Download the latest <a href="http://www.test-king.com/cert-Security-plus.htm">comptia security+</a> question and answers to practice for <a href="http://www.test-king.com/cert-CCNP.htm">ccnp certification</a> exam. We also provide best quality dumps for <a href="http://www.test-king.com/cert-MCSE-2003.htm">mcse 2003</a> certification.</div>


<p>Related posts:<ol><li><a href='http://www.productivedreams.com/min-width-issue-in-ie6/' rel='bookmark' title='Min-width issue in IE6'>Min-width issue in IE6</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/ie-css-hack-without-using-any-hacks/feed/</wfw:commentRss>
		<slash:comments>24</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.comreams/?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 &#8230; <a href="http://www.productivedreams.com/min-width-issue-in-ie6/">Read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>The problem was to make it compatible on all major browsers, including IE6 !!!!!. I wonder why people still use IE.</p>
<p>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 />
<code lang="css">.div_class_name{<br />
width: expression(document.body.clientWidth < 1002? "1000px" : "auto");<br />
}</code><br />
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;".</p>
<h1>Known Issues:</h1>
<ul>
<li>Only works with JavaScript enabled browsers</li>
<li>Not W3C valid</li>
</ul>
<p>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="sponad">This <a href="http://www.actualtests.com/exam-1z0-054.htm">1z0-054</a> tutorial is for perfect for beginners . Become expert in web designing using <a href="http://www.testkingsite.com/microsoft/70-272.html">70-272</a> guide and <a href="http://www.certkiller.com/exam-642-971.htm">642-971</a> design tutorials.<br />
<br/>Our <a href="http://www.test-king.com/cert-CCENT.htm">ccent course</a> includes the every thing that you have to learn for <a href="http://www.test-king.com/exams/VCP-410.htm">VCP-410</a> exam.   Subscribe for <a href="http://www.test-king.com/cert-CCIE.htm">ccie training</a> to pass real exam on time.</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.productivedreams.com/min-width-issue-in-ie6/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

