<?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>CSS Thoughts</title>
	<atom:link href="http://pradeepsathyan.com/feed" rel="self" type="application/rss+xml" />
	<link>http://pradeepsathyan.com</link>
	<description></description>
	<lastBuildDate>Thu, 12 Aug 2010 09:52:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Safari equal height fix using JQuery</title>
		<link>http://pradeepsathyan.com/css/safari-equal-height-fix-using-jquery.php</link>
		<comments>http://pradeepsathyan.com/css/safari-equal-height-fix-using-jquery.php#comments</comments>
		<pubDate>Sun, 05 Jul 2009 13:21:07 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=81</guid>
		<description><![CDATA[In some design we have to use common height for same DIV. Some way we can use min-height using through CSS but it might not work when one of the div content will grow. So I search through Google and find some Jquery script. Step 1 :- We have to first write this function : [...]]]></description>
			<content:encoded><![CDATA[<p>In some design we have to use common height for same DIV. Some way we can use min-height using through CSS but it might not work when one of the div content will grow. So I search through Google and find some Jquery script.</p>
<p>Step 1 :- We have to first write this function :</p>
<p>function equalHeight(group) {<br />
tallest = 0;<br />
group.each(function() {<br />
thisHeight = $(this).height();<br />
if(thisHeight &gt; tallest) {<br />
tallest = thisHeight;<br />
}<br />
});<br />
group.height(tallest);<br />
}</p>
<p>Step 2 :- We have to call this function in the document Ready -</p>
<p>$(document).ready(function() {<br />
equalHeight($(&#8220;.sample&#8221;));<br />
equalHeight($(&#8220;.sample2&#8243;));<br />
});</p>
<p>But I face some difficulties using like this. In safari browser script is not working properly. Also if we have a multiple div&#8217;s we have to call the div id or class one by one. So I modified the script a little bit and its working fine on all browsers. So for doing that we have to give the script like this.</p>
<p>$(window).load(function(){<br />
var classArr = [".sample", ".sample1", ".sample2",".sample3"];</p>
<p>for(var i=0;i&lt;classArr.length;i++)</p>
<p>{<br />
equalHeight($(classArr[i]));<br />
}<br />
});</p>
<p>In this way we can use multiple equal height div in a array. Also perfectly working on all Browsers <img src='http://pradeepsathyan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/safari-equal-height-fix-using-jquery.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Single line browser css hacks</title>
		<link>http://pradeepsathyan.com/css/single-line-browser-css-hacks.php</link>
		<comments>http://pradeepsathyan.com/css/single-line-browser-css-hacks.php#comments</comments>
		<pubDate>Sat, 16 May 2009 15:52:57 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=75</guid>
		<description><![CDATA[CSS hacks as quite handy but it will work and save our time. But mostly I will prefer not to use hacks. .example{ margin:0; /* This will work on all the browsers. FF3 */ _margin:0; /* This will work only on IE6 */ .margin:0; /* This will work only on IE7 */ } Browser CSS [...]]]></description>
			<content:encoded><![CDATA[<p>CSS hacks as quite handy but it will work and save our time. But mostly I will prefer not to use hacks. </p>
<p>.example{<br />
margin:0; /* This will work on all the browsers. FF3 */<br />
_margin:0; /* This will work only on IE6 */<br />
.margin:0; /* This will work only on IE7 */<br />
}</p>
<p><strong><u>Browser CSS Hacks</u></strong></p>
<p>   <strong> * IE 6 and below</strong></p>
<p>      * html {}</p>
<p>    <strong>* IE 7 and Safari below</strong></p>
<p>      *:first-child+html {}</p>
<p>    <strong>* IE 7 only</strong></p>
<p>      *:first-child+html {}</p>
<p>   <strong> * IE 7 and modern browsers only</strong></p>
<p>       html>body {}</p>
<p>   <strong> * Modern browsers only (not IE 7)</strong></p>
<p>       html>/**/body {}</p>
<p>    <strong>* Recent Opera versions 9 and below</strong></p>
<p>      html:first-child {} </p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/single-line-browser-css-hacks.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Jquery Thickbox with Shadows</title>
		<link>http://pradeepsathyan.com/css/jquery-thickbox-with-shodows.php</link>
		<comments>http://pradeepsathyan.com/css/jquery-thickbox-with-shodows.php#comments</comments>
		<pubDate>Sun, 12 Apr 2009 12:23:03 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=69</guid>
		<description><![CDATA[Actaully if you can see there is no shadow is showing in Thickbox library. So I just manipulate the code and give some shadow on the thickbox JS. Only problem its is not perfectly working on IE6. Which I am still looking on it&#8230;&#8230; You can find the Sample Here Demo Here]]></description>
			<content:encoded><![CDATA[<p>Actaully if you can see there is no shadow is showing in Thickbox library. So I just manipulate the code and give some shadow on the thickbox JS. Only problem its is not perfectly working on IE6. Which I am still looking on it&#8230;&#8230;</p>
<p><img title="Thickbox" src="/wp-content/themes/V5-theme/images/thickbox.png" alt="ThickBox" /></p>
<p>You can find the <a href="http://pradeepsathyan.com/wp-content/themes/V5-theme/download/Thickbox.rar">Sample Here</a></p>
<p><a href="http://pradeepsathyan.com/wp-content/themes/V5-theme/Thickbox/index.html" target="_blank">Demo Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/jquery-thickbox-with-shodows.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Table layout using UL LI</title>
		<link>http://pradeepsathyan.com/css/table-layout-using-ul-li.php</link>
		<comments>http://pradeepsathyan.com/css/table-layout-using-ul-li.php#comments</comments>
		<pubDate>Wed, 08 Apr 2009 10:37:15 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=63</guid>
		<description><![CDATA[Whenever we are creating a form or table layout design we have to use table. So I tried something on UL LI and its working for me. Checkout the screenshot. You can find Demo Here]]></description>
			<content:encoded><![CDATA[<p>Whenever we are creating a form or table layout design we have to use table. So I tried something on UL LI and its working for me. Checkout the screenshot.</p>
<p><img src="http://pradeepsathyan.com/wp-content/uploads/2009/04/Table-ul.png" title="Table UL LI" alt="Table UL LI" border="0"/></p>
<p>You can find <a href="http://pradeepsathyan.com/wp-content/themes/V5-theme/ul list table/ulli-table.html">Demo Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/table-layout-using-ul-li.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ComboBox Styling using Jquery and CSS</title>
		<link>http://pradeepsathyan.com/css/combobox-styling-using-jquery-and-css.php</link>
		<comments>http://pradeepsathyan.com/css/combobox-styling-using-jquery-and-css.php#comments</comments>
		<pubDate>Sun, 22 Mar 2009 09:18:13 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/css/combobox-styling-using-jquery-and-css.php</guid>
		<description><![CDATA[Please not this will not work on IE6. Well when we design the template for looking good will make the ComboBox as our own style. But problem comes when we do it on HTML. We can&#8217;t give proper style to ComboBox. If you are not look into IE6. This is the best way to style [...]]]></description>
			<content:encoded><![CDATA[<p>Please not this will not work on IE6.</p>
<p><img src="http://pradeepsathyan.com/wp-content/uploads/2009/03/combobox.jpg" alt="Selectbox" title="Selectbox" border="0" /></p>
<p>Well when we design the template for looking good will make the ComboBox as our own style. But problem comes when we do it on HTML. We can&#8217;t give proper style to ComboBox. If you are not look into IE6. This is the best way to style a ComboBox using JQuery.</p>
<p><a href="http://www.pradeepsathyan.com/wp-content/themes/V5-theme/combobox/index.html" target="_blank">Demo Here</a></p>
<p><a href="http://pradeepsathyan.com/wp-content/themes/V5-theme/download/combobox.rar">Download Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/combobox-styling-using-jquery-and-css.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selectbox with Jquery and CSS</title>
		<link>http://pradeepsathyan.com/css/selectbox-with-jquery-and-css.php</link>
		<comments>http://pradeepsathyan.com/css/selectbox-with-jquery-and-css.php#comments</comments>
		<pubDate>Tue, 17 Mar 2009 10:50:26 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=40</guid>
		<description><![CDATA[In HTML only thing we can&#8217;t style is select box using css. Here is the way we can do it using JQuery. See the demo here Click this link to download the Example]]></description>
			<content:encoded><![CDATA[<p>In HTML only thing we can&#8217;t style is select box using css. Here is the way we can do it using JQuery. See the <a href="http://pradeepsathyan.com/wp-content/themes/V5-theme/jquery-combo/index.html">demo here</a></p>
<p><a href="http://pradeepsathyan.com//wp-content/themes/V5-theme/download/jquery-combo.rar">Click this link to download the Example</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/selectbox-with-jquery-and-css.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 CSS Tricks That Must be Learned</title>
		<link>http://pradeepsathyan.com/uncategorized/15-css-tricks-that-must-be-learned.php</link>
		<comments>http://pradeepsathyan.com/uncategorized/15-css-tricks-that-must-be-learned.php#comments</comments>
		<pubDate>Tue, 27 Jan 2009 10:07:54 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=29</guid>
		<description><![CDATA[Checkout this link. http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/]]></description>
			<content:encoded><![CDATA[<p>Checkout this link.</p>
<p>http://blog.themeforest.net/general/15-css-tricks-that-must-be-learned/</p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/uncategorized/15-css-tricks-that-must-be-learned.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Footer stick using CSS</title>
		<link>http://pradeepsathyan.com/css/footer-stick-using-css.php</link>
		<comments>http://pradeepsathyan.com/css/footer-stick-using-css.php#comments</comments>
		<pubDate>Tue, 27 Jan 2009 06:58:19 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[clearfix]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=26</guid>
		<description><![CDATA[There are many footer stick methods to be found in Google. I&#8217;ve tried many of them and they usually fail in some regards. The Problem it seem that the old code may not properly work on new browsers. I tryed a way that it will work in my works. Check the Code below. The HTML [...]]]></description>
			<content:encoded><![CDATA[<p>There are many footer stick methods to be found in Google. I&#8217;ve tried many of them and they usually fail in some regards. The Problem it seem that the old code may not properly work on new browsers. I tryed a way that it will work in my works. Check the Code below.</p>
<h2>The HTML Code</h2>
<p>Below is the basic structure of the HTML code. You&#8217;ll notice how the footer &lt;div&gt; sits <em>outside</em> of the wrap &lt;div&gt;.</p>
<pre>&lt;div id="container"&gt;
	&lt;div id="wrap" class="clearfix"&gt;
	&lt;/div&gt;
&lt;/div&gt;

&lt;div id="footer"&gt;

&lt;/div&gt;</pre>
<p>You would place your content elements inside the main &lt;div&gt;. For example, if you were using a 2 column floating layout you might have this;</p>
<pre>&lt;div id="container"&gt;

	&lt;div id="wrap" class="clearfix"&gt;

		&lt;div id="content"&gt;

		&lt;/div&gt;

		&lt;div id="side"&gt;

		&lt;/div&gt;

	&lt;/div&gt;

&lt;/div&gt;

&lt;div id="footer"&gt;

&lt;/div&gt;</pre>
<p>A header could be placed inside the wrap but above the main like this;</p>
<pre>&lt;div id="container"&gt;

	&lt;div id="header"&gt;

	&lt;/div&gt;

	&lt;div id="wrap" class="clearfix"&gt;

	&lt;/div&gt;

&lt;/div&gt;

&lt;div id="footer"&gt;

&lt;/div&gt;</pre>
<p>If you wanted to place any elements outside of either the wrap or the footer then you would need to use absolute positioning else it messes up the 100% height calculations.</p>
<h2>The CSS Code</h2>
<p>Below is the CSS code makes your sticky footers to stick to the bottom.</p>
<pre>html, body, #container {height: 100%;}

body &gt; #container{height: auto; min-height: 100%;}

#wrap{padding-bottom: 150px;}  /* must be same height as the footer */

#footer {position: relative;
	margin-top: -150px; /* negative value of footer height */
	height: 150px;
	clear:both;}</pre>
<p>You&#8217;ll notice that the footer height is used three times here. This is important and should be the same value for all three instances. The height properties are stretching the wrap &lt;div&gt; to the full height of the window. The negative margin of the footer brings it up into the padding created for the main &lt;div&gt;. Since the main rests inside the wrap the padding height is already part of the 100%. Thus the footer rests at the bottom of the page.</p>
<p>But we are not done just yet.  We need to add the clearfix properties to the main &lt;div&gt;.</p>
<h2>Clearfix Hack to the Rescue</h2>
<p>Many CSS designers will be familiar with the <em>Clearfix Hack</em>. It solves a lot of problems with floating elements. We use it here to get the footer to stick in Google Chrome. It also solves issues that come up when using a 2-column layout where you float your content to one side and your sidebar to the other. The floating content elements inside the main &lt;div&gt; can cause the footer to become un-stuck in some browsers.</p>
<p>So we add this to our stylesheet as well;</p>
<pre>.clearfix:after {content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix { height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */</pre>
<p>If you prefer to use the Ryan Fait method with the extra push &lt;div&gt; you&#8217;ll still need to apply a clearfix if you are using a floating multi-column layout.</p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/footer-stick-using-css.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Min-Height Hack for IE6</title>
		<link>http://pradeepsathyan.com/css/min-height-hack-for-ie6.php</link>
		<comments>http://pradeepsathyan.com/css/min-height-hack-for-ie6.php#comments</comments>
		<pubDate>Sun, 21 Dec 2008 15:11:18 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=20</guid>
		<description><![CDATA[For Min-Height working in IE6 this was the easiest way of doing it. In browser like IE6 won&#8217;t take min-height with this simple hack you can give the min-height to IE6. selector { min-height:500px; height:auto !important; height:500px; }]]></description>
			<content:encoded><![CDATA[<p>For Min-Height working in IE6 this was the easiest way of doing it. In browser like IE6 won&#8217;t take min-height with this simple hack you can give the min-height to IE6.</p>
<pre>selector {
  min-height:500px;
  height:auto <strong style="color: #ff0000;">!important</strong>;
  height:500px;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/min-height-hack-for-ie6.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single Line CSS Hack for all browsers</title>
		<link>http://pradeepsathyan.com/css/single-line-css-hack-for-all-browsers.php</link>
		<comments>http://pradeepsathyan.com/css/single-line-css-hack-for-all-browsers.php#comments</comments>
		<pubDate>Sun, 21 Dec 2008 15:09:33 +0000</pubDate>
		<dc:creator>Pradeep</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://pradeepsathyan.com/?p=18</guid>
		<description><![CDATA[Writing hack for IE6 &#38;amp; IE7 in a single line. This was the easiest way to put it in three line. If you put underscore it will work on IE6 in any property ( like.. margin, height, backgound etc..) .If you put .dot it will work only on IE7. Just Follow the same structure as [...]]]></description>
			<content:encoded><![CDATA[<p>Writing hack for IE6 &amp;amp; IE7 in a single line. This was the easiest way to put it in three line. If you put underscore it will work on IE6 in any property ( like.. margin, height, backgound etc..) .If you put .dot it will work only on IE7. Just Follow the same structure as per the example.</p>
<p>selector {<br />
height: 100px ; /* Firefox */<br />
_height:120px; /* IE6 */<br />
.height:130px; /* IE7 */<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://pradeepsathyan.com/css/single-line-css-hack-for-all-browsers.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
