<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

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

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

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

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

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

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

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

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

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

<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=665&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/input-hidden-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess hotlinker</title>
		<link>http://www.maheshchari.com/htaccess-hotlinker/</link>
		<comments>http://www.maheshchari.com/htaccess-hotlinker/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 02:37:29 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=644</guid>
		<description><![CDATA[How to stop hotlinking our web assets like images, music , video other files? I recently i launched my project that will generates funny logo of user&#8217;s name , i worked around one week to complete this php script generates the funny logo. After one or two weeks users directly linking their logo to my [...]]]></description>
			<content:encoded><![CDATA[<h1>How to stop hotlinking our web assets like images, music , video other files?</h1>
<p>I recently i launched my project that will generates <a href="#" target="_blank">funny logo of user&#8217;s name</a> , i worked around one week to complete this php script generates the<a href="http://myhomepagezone.com/" target="_blank"> funny logo</a>. After one or two weeks users directly linking their logo to my hosting server ,than downloading and hosting on their server.This is called <strong>hotlinking</strong> where visitors will use directly from our hosted web assets.</p>
<p>So i want stop this <strong>hotlinking</strong> from <strong>hotlinker</strong> with htaccess , thanks to apache<a href="http://www.maheshchari.com/enable-mod_rewrite-on-apache/"> htaccess rewrite rules</a>  <img src='http://www.maheshchari.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>Here is my small tweak to my <strong>htaccess</strong> file that prevents hotlinking. </p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">RewriteEngine on
RewriteCond  %{HTTP_REFERER} !^$
RewriteCond  %{HTTP_REFERER} !^http(s)?://(www\.)?maheshchari.com [NC]
RewriteRule  \.(jpg|jpeg|png|gif)$ http://www.maheshchari.com/hotlink.jpg [NC,R,L]</pre></div></div>

<p>In the above code snippet second and third lines are conditions , if the referrer is blank or <a href="maheshchari.com">maheshchari.com</a> we allow images can be linked , if not we replace that images with hotlink.jpg image.</p>
<p>We can do this for not only images ,we can do it for other media files like mp3, video files, doc files also. </p>
<p><strong>Remember:</strong></p>
<p>You must replace the url to <strong>image</strong> or any <strong>doc</strong> file corresponding media type file.</p>
<p>You must allow some websites like facebook,google i.e famaous social networking sites, search engins. </p>
<p>for this you can add as many conditions you want like below</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?google\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?yahoo\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?technorati\.com/ [NC]
&nbsp;
with this method we can find the hotlinker also by redirecting to our mail sender php script the 
referrer.</pre></div></div>

<p>&nbsp;</p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=644&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/htaccess-hotlinker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess directory index</title>
		<link>http://www.maheshchari.com/htaccess-directory-index/</link>
		<comments>http://www.maheshchari.com/htaccess-directory-index/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 00:45:22 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[directory index]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=640</guid>
		<description><![CDATA[htaccess directory index generelly when we access the directory on webserver, we get index.html or index.htm or default.asp or index.php. in some situation we need to change the directory default page to other or specified page. We can set this with htaccess file on server . remember before going to view this tutorial , you [...]]]></description>
			<content:encoded><![CDATA[<h1>htaccess directory index</h1>
<p>generelly when we access the directory on webserver, we get index.html or index.htm or default.asp or index.php. </p>
<p>in some situation we need to change the directory default page to other or specified page. We can set this with htaccess file on server . remember before going to view this tutorial , you have to <a href="http://www.maheshchari.com/how-to-check-weather-mod_rewrite-module-is-enabled/">check htaccess enabled</a> by your web hosting provider. </p>
<p>open your favorite text editor and add following text to it and save as .htacces  name . </p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">DirectoryIndex mydirectory.html</pre></div></div>

<p>So when you open some url like </p>
<p>http://www.yoursite.com/directory/</p>
<p>you will serve the mydirectory.html as default page. </p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=640&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/htaccess-directory-index/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ie css hack reference</title>
		<link>http://www.maheshchari.com/ie-css-hack-reference/</link>
		<comments>http://www.maheshchari.com/ie-css-hack-reference/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 04:07:24 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Html]]></category>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://www.maheshchari.com/?p=374</guid>
		<description><![CDATA[How to Add fav icon to your web site What is fav icon? a favicon is really nothing more than a tiny png image with a .ico extension and sized to 16x 16 or 32 x 32. How to create fav icon? So, the first thing you need to do is to create the image [...]]]></description>
			<content:encoded><![CDATA[<h1>How to Add fav icon to your web site</h1>
<h3>What is fav icon?  </h3>
<p>a favicon is really nothing more than a tiny png image with a <strong>.ico </strong>extension and sized to <strong>16x 16 </strong>or <strong>32 x 32</strong>.  </p>
<h3>How to create fav icon?  </h3>
<p>So, the first thing you need to do is to create the image that you want to use; whatever you use, don’t make it too complex because small detail tend to get lost when re sized to a tiny 16 by 16 pixels.Create a image that sized square model image.then you should re size to 16&#215;16 px or 32x32px.here we can use photoshop , corel draw and gimp ..etc.before saving the image just add extension ico,instead of regular images gif,png,jpg.  </p>
<h3>Why should i give ico extension name?</h3>
<p> Mostly <strong>modern </strong>browsers supports any format of image,but it must compatibly with older browsers also.you can give regular formats like favicon.gif,favicon.png,favicon.jpg also.  </p>
<h3>Where should i keep this icon on server?</h3>
<p> Moslty browser search for favicon in root folder,so if you keep this icon on root directory like ,<strong>www ,public_html </strong>directory on <strong>server</strong>.<br />
  you can keep this icon not only root directory ,its your choice.if so you have to<strong> add small html code shwon below</strong> in header of each page of site. It works on your local server also.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">  	&lt;head&gt;
	&lt;link rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot; &gt;
	&lt;/head&gt;</pre></td></tr></table></div>

<h3>Adding GIF images as favicon</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">  	&lt;head&gt;
	&lt;link rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot; &gt;
	&lt;link rel=&quot;icon&quot; href=&quot;animated_favicon.gif&quot; type=&quot;image/gif&quot; &gt;
	&lt;/head&gt;</pre></td></tr></table></div>

<p>
 in the above code we use two type of favicons . <strong>favicon.ico</strong> for old browsers don&#8217;t support gif images.<br />
 <strong>animated_favicon.gif </strong>is for modern browser supports. </p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=374&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/favico-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>hide javascript code from non javascript browser</title>
		<link>http://www.maheshchari.com/hide-javascript-code-from-non-javascript-browser/</link>
		<comments>http://www.maheshchari.com/hide-javascript-code-from-non-javascript-browser/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 03:14:42 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=368</guid>
		<description><![CDATA[hide JavaScript code from non-JavaScript browsers Here we learn how to hide the javascript code from non javascript browsers , javascript disabled browsers and mobile browsers .Non javascript browsers renders the javascript code as generel text without exucuting the code. So we must aware how to hide the javascript from these browsers. &#160; 1 2 [...]]]></description>
			<content:encoded><![CDATA[<h1>hide JavaScript code from non-JavaScript  browsers</h1>
<p>Here we learn how to hide the javascript code from non javascript browsers , javascript disabled browsers and mobile browsers .Non javascript browsers renders the javascript code as generel text without exucuting the code. So we must aware how to hide the javascript from these browsers.</p>
<p>&nbsp; </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;This alert box is hidden from non javascript browsers.!!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//--&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=368&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/hide-javascript-code-from-non-javascript-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>check javascript disabled</title>
		<link>http://www.maheshchari.com/check-javascript-disabled/</link>
		<comments>http://www.maheshchari.com/check-javascript-disabled/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 03:09:42 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=326</guid>
		<description><![CDATA[Check Browser Javascript enabled JavaScript is a small, lightweight, object-oriented, cross-platform scripting language.JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more.With some reasons the web browser don&#8217;t support Javascript ,like user intentially disables,some mobile browsers version don&#8217;t support.Then it must we check the whether user&#8217;s web [...]]]></description>
			<content:encoded><![CDATA[<h1>Check Browser Javascript enabled</h1>
<p><strong>JavaScript</strong> is a small, lightweight, object-oriented, cross-platform scripting language.JavaScript is used in millions of Web pages to add functionality, validate forms, detect browsers, and much more.With some reasons the web browser don&#8217;t support <strong>Javascript</strong> ,like user<strong> intentially disables</strong>,some  <strong>mobile browsers</strong>  version don&#8217;t support.Then it must we check the whether user&#8217;s web browser has Javascript enabled.Here we discuss how to <strong>handle non Javascript browser</strong>.</p>
<p>We show a alert ,<strong>warning message</strong> if user browser don&#8217;t hav Javascript enabled.using <strong>&lt;noscript&gt;</strong> HTML tag. just add bellow code to any where in the <strong>body </strong>section.<strong>&lt;noscript&gt;</strong> element will be rendered by those <strong>Javascript disabled</strong> browsers. </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;noscript&gt;&lt;font face=arial&gt;JavaScript must be enabled in order for you to use maheshchari.com in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then &lt;a href=&quot;&quot;&gt;try again&lt;/a&gt;. &lt;/font&gt;&lt;/noscript&gt;</pre></td></tr></table></div>

<p>We show a alert ,warning message with Javascript itself if user browser <strong>doesn&#8217;t support &lt;noscript&gt;</strong> HTML tag.below example code demonstrates.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;nojs&quot;&gt;&lt;font face=arial&gt;JavaScript must be enabled in order for you to use maheshchari.com in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then &lt;a href=&quot;&quot;&gt;try again&lt;/a&gt;.&lt;/font&gt;&lt;/div&gt;
&lt;script&gt;
//if script enabled warning message hidden.
document.getElementById('nojs').style.display=&quot;none&quot;;
&lt;/script&gt;</pre></td></tr></table></div>

<p>&nbsp;</p>
<p>We create <strong>seperate UI</strong> or <strong>seperate web site</strong> for those <strong>Javascript disabled</strong> browsers. below example redirects the user automatically if <strong>Javascript disabled.</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;noscript&gt;
&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;URL=http://mobile.maheshchari.com&quot; /&gt;
&lt;/noscript&gt;
&lt;/head&gt;
&lt;body&gt;&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<p>&nbsp; </p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=326&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/check-javascript-disabled/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>absolute vs relative path</title>
		<link>http://www.maheshchari.com/absolute-vs-relative-path/</link>
		<comments>http://www.maheshchari.com/absolute-vs-relative-path/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 04:28:27 +0000</pubDate>
		<dc:creator>mahesh chari</dc:creator>
				<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.maheshchari.com/?p=311</guid>
		<description><![CDATA[Absolute vs Relative file paths In this article,we observe the importence of absolute and relative file path of internet files that are placed in own domains or other domains. html document can be rendered atleast a document file. these files are linked to a document like CSS,Javascript,images,flash files.A path basically tells a web browser, where [...]]]></description>
			<content:encoded><![CDATA[<h1>Absolute vs Relative file paths</h1>
<p>In this article,we observe the importence of absolute and relative file path of internet files that are placed in own domains or other domains. html document can be rendered atleast a document file. these files are linked to a document like CSS,Javascript,images,flash files.A path basically tells  a web browser, where another file is located. </p>
<h3>Types of paths</h3>
<ul>
<li>Absolute path</li>
<li>Site root relative path</li>
<li>Document relative path</li>
</ul>
<h3>Absolute Path</h3>
<p>These are <strong>absolute server paths</strong>, they are relative in regards to your http document directory.generelly we place them with URL of the site.main advantages of these absolute path are we can manipulate the dynamicall genereated MIM types,that results in caching the assets,avoiding the caches.we can move document in site directory where ever. we can refer regard less of the sites. </p>
<p>Examples:-</p>
<p>image</p>
<p>&lt;img src=&quot;http://www.maheshchari.com/images/image.jpg&quot; width=&quot;120&quot; height=&quot;110&quot; /&gt; </p>
<p>javascript source file</p>
<p>&lt;script src=&quot;http://www.maheshchari.com/images/javascriptsrcfile.js&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt; </p>
<p>CSS file</p>
<p>&lt;link href=&quot;http://www.maheshchari.com/images/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</p>
<p>&nbsp;</p>
<h3>Site root relative path  </h3>
<p>These are <strong>semi absolute paths</strong>, in the main absolute path from above examples we replace  <strong>http://www.maheshchari.com/images/</strong> with just <strong>/ </strong>.but these assets can be accesed to single working domain only. </p>
<p>Examples:-</p>
<p>image</p>
<p>&lt;img src=&quot;/images/image.jpg&quot; width=&quot;120&quot; height=&quot;110&quot; /&gt; </p>
<p>javascript source file</p>
<p>&lt;script src=&quot;/images/javascriptsrcfile.js&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt; </p>
<p>CSS file</p>
<p>&lt;link href=&quot;/images/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</p>
<h3>Document relative path</h3>
<p>these are document relative path,assuming present working document in site root directory.below examples works.main disadvantage of these document relative path,if we move the present working document </p>
<p>Examples:-</p>
<p>image</p>
<p>&lt;img src=&quot;images/image.jpg&quot; width=&quot;120&quot; height=&quot;110&quot; /&gt; </p>
<p>javascript source file</p>
<p>&lt;script src=&quot;images/javascriptsrcfile.js&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt; </p>
<p>CSS file</p>
<p>&lt;link href=&quot;images/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</p>
<p>&nbsp;</p>
<p>if present document moved in to one deeper directory.</p>
<p>Examples:</p>
<p>&lt;img src=&quot;../images/image.jpg&quot; width=&quot;120&quot; height=&quot;110&quot; /&gt; </p>
</p>
<p>&nbsp; </p>
<p>&nbsp;  </p>
<img src="http://www.maheshchari.com/?ak_action=api_record_view&id=311&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.maheshchari.com/absolute-vs-relative-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

