<?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>Kavoir &#187; CSS &amp; HTML Tips</title>
	<atom:link href="http://www.kavoir.com/category/world-wide-web-technology/css-xhtml-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kavoir.com</link>
	<description>Just another dumbass webmaster, goofing around...</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Redirect 404 Error to Home Page</title>
		<link>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html</link>
		<comments>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 03:15:19 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[HTTP Tips & Tutorials]]></category>
		<category><![CDATA[PHP Tips & Tutorials]]></category>
		<category><![CDATA[WordPress How To]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html</guid>
		<description><![CDATA[Other than making your 404 error page user friendly, you can redirect it to your index pages such as the homepage, sitemap, or search page, to make it useful for the users. Instead of relying on them to correct the error themselves, you offer the new orientation. How to redirect a 404 error page to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Other than making your <a href="http://www.smashingmagazine.com/2007/08/17/404-error-pages-reloaded/">404 error page</a> <a href="http://www.alistapart.com/articles/perfect404/">user friendly</a>, you can redirect it to your index pages such as the homepage, sitemap, or search page, to make it useful for the users. Instead of relying on them to correct the error themselves, you offer the new orientation.</p>

<h2>How to redirect a 404 error page to the home page?</h2>
<p>There are essentially 3 ways to do this depending on the technology your site is built on.</p>
<h3>The .htaccess and HTML solution</h3>
<p>This works across all sites that are served by the Apache web server with .htaccess enabled. Add this line in the .htaccess file in the root directory of your domain:</p>
<pre><code>ErrorDocument 404 /404.html</code></pre>
<p>And in 404.html, add a meta tag in the HTML head section: </p>
<pre><code>&lt;meta http-equiv=&quot;Refresh&quot; content=&quot;1; URL=http://www.example.com/&quot;&gt;</code></pre>
<p>So when there’s an 404 Not Found error the user would be first redirected to /404.html and in turn, he or she would be redirected to the homepage http://www.example.com/ (or whatever you change it to) by the meta <strong>Refresh</strong> actions.</p>
<h3>The PHP solution</h3>
<p>If you are using PHP to code your site, chances are you know this solution. You can always use the previous solution (The .htaccess and HTML solution) to redirect 404 error page to your home page on a PHP site, but you can also try the pure PHP approach instead.</p>
<p>Whenever a user types in a URL request that you do not recognize, render this:</p>
<pre><code>header(&quot;HTTP/1.1 404 Not Found&quot;);
header(&quot;Location: /&quot;);
exit();</code></pre>
<p>Which would redirect the user who has hit a 404 error to the homepage / or any other page URL you specify there.</p>
<h3>The WordPress solution</h3>
<p>If you are using WordPress for your site, make a 404.php file in your theme directory with the following content:</p>
<pre><code>&lt;?php
header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
header(&quot;Location: &quot;.get_bloginfo('url'));
exit();</code></pre>
<p>WordPress would automatically use 404.php as the default 404 Not Found error page and when a user hits that page, he or she would then be taken to the home page your WordPress blog.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html" rel="bookmark" title="September 3, 2009">How to redirect the visitor to another page or website?</a></li>
<li><a href="http://www.kavoir.com/2009/08/javascript-stop-and-prevent-others-from-framing-your-site-and-page.html" rel="bookmark" title="August 30, 2009">PHP, JavaScript: Stop and prevent others from framing your site or web page</a></li>
<li><a href="http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html" rel="bookmark" title="August 28, 2011">HTML: Make a Page Refresh Every xx Seconds</a></li>
<li><a href="http://www.kavoir.com/2009/06/javascript-open-or-redirect-to-another-page-site-location.html" rel="bookmark" title="June 16, 2009">JavaScript: Open or Redirect to Another Page / Site / Location</a></li>
<li><a href="http://www.kavoir.com/2009/09/best-way-to-hide-and-cloak-your-affiliate-links.html" rel="bookmark" title="September 19, 2009">Best way to hide and cloak your affiliate links?</a></li>
</ul>
<p><!-- Similar Posts took 2.412 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Make &lt;pre&gt; Text to Wrap</title>
		<link>http://www.kavoir.com/2011/12/css-make-text-to-wrap.html</link>
		<comments>http://www.kavoir.com/2011/12/css-make-text-to-wrap.html#comments</comments>
		<pubDate>Mon, 19 Dec 2011 10:39:20 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=2552</guid>
		<description><![CDATA[I deal with quite some code examples across some of my blogs and sometimes they contain too long lines to fit in nicely, which makes it hard to read the latter part of a long line. But you still need to maintain the pre-formatted text with the &#60;pre&#62; tag. The solution is to use CSS [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I deal with quite some code examples across some of my blogs and sometimes they contain too long lines to fit in nicely, which makes it hard to read the latter part of a long line. But you still need to maintain the pre-formatted text with the &lt;pre&gt; tag.</p>

<p>The solution is to use CSS to prescribe the &lt;pre&gt; tag to wrap the lines. Just add this in your stylesheet:</p>
<pre>pre.wrap {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}</pre>
<p>And add the &#8220;wrap&#8221; class to the &lt;pre&gt;&lt;/pre&gt; blocks that you want lines to wrap naturally:</p>
<pre>&lt;pre <strong>class="wrap"</strong>&gt;I will be wrapping at the end of the line width.&lt;/pre&gt;</pre>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/02/css-double-border.html" rel="bookmark" title="February 8, 2009">CSS: Double Border</a></li>
<li><a href="http://www.kavoir.com/2011/03/vbulletin-how-to-add-more-buttons-to-quick-reply-box-toolbar.html" rel="bookmark" title="March 26, 2011">vBulletin: How to add more buttons to quick reply box toolbar?</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-complementary-background-in-float.html" rel="bookmark" title="February 6, 2009">CSS: Complementary Background in Float</a></li>
<li><a href="http://www.kavoir.com/2009/07/a-few-suggestions-of-good-practices-for-accelerating-php-development.html" rel="bookmark" title="July 6, 2009">A few suggestions of good practices for accelerating PHP development</a></li>
<li><a href="http://www.kavoir.com/2008/04/comment-tag-in-internet-explorer-of-both-windows-and-mac.html" rel="bookmark" title="April 9, 2008">Proprietary HTML comment tag in Internet Explorer of both Windows and Mac</a></li>
</ul>
<p><!-- Similar Posts took 2.196 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2011/12/css-make-text-to-wrap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML: Make a Page Refresh Every xx Seconds</title>
		<link>http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html</link>
		<comments>http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html#comments</comments>
		<pubDate>Sun, 28 Aug 2011 03:37:30 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[HTTP Tips & Tutorials]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=2319</guid>
		<description><![CDATA[A quick tip for those who just started learning HTML. It&#8217;s possible to add a line of code in your HTML page so that it&#8217;s automatically refreshed every few seconds when loaded in the user&#8217;s browser. To make the page automatically refresh itself every 60 seconds, just insert the following code in the &#60;head&#62;&#60;/head&#62; section [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>A quick tip for those who just started learning HTML. It&#8217;s possible to add a line of code in your HTML page so that it&#8217;s automatically refreshed every few seconds when loaded in the user&#8217;s browser.</p>

<p>To make the page automatically refresh itself every 60 seconds, just insert the following code in the &lt;head&gt;&lt;/head&gt; section of your HTML source code:</p>
<pre><code><strong>&lt;meta http-equiv="refresh" content="60"&gt;</strong></code></pre>
<p>This would be very useful to display information that is constantly changing.</p>
<p>This can also be used to <a href="http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html">redirect</a> the user from the current page to another, just specify the destination URL:</p>
<pre><code>&lt;meta http-equiv="refresh" content="30; <strong>url=http://example.com/</strong>"&gt;</code></pre>
<p>Which would redirect the browser to http://example.com/ 30 seconds after finishing loading the current page.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html" rel="bookmark" title="December 25, 2011">Redirect 404 Error to Home Page</a></li>
<li><a href="http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html" rel="bookmark" title="September 3, 2009">How to redirect the visitor to another page or website?</a></li>
<li><a href="http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html" rel="bookmark" title="May 29, 2010">The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)</a></li>
<li><a href="http://www.kavoir.com/2009/06/javascript-open-or-redirect-to-another-page-site-location.html" rel="bookmark" title="June 16, 2009">JavaScript: Open or Redirect to Another Page / Site / Location</a></li>
<li><a href="http://www.kavoir.com/2010/03/use-relative-protocol-url-address-to-automatically-determine-web-address-protocol-http-or-https.html" rel="bookmark" title="March 6, 2010">Use Relative Protocol URL Address to Automatically Determine Web Address Protocol (HTTP or HTTPS)</a></li>
</ul>
<p><!-- Similar Posts took 2.835 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pure CSS Rounded Corner, No Images</title>
		<link>http://www.kavoir.com/2011/03/pure-css-rounded-corner-no-images.html</link>
		<comments>http://www.kavoir.com/2011/03/pure-css-rounded-corner-no-images.html#comments</comments>
		<pubDate>Fri, 04 Mar 2011 04:09:58 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2011/03/pure-css-rounded-corner-no-images.html</guid>
		<description><![CDATA[Though it does look great, I haven’t given it a try until the other day when I was developing smartbabynames.com. Notice the previous and next link immediately below the boy image at here: http://www.smartbabynames.com/meaning/boy/Langleigh/ They look and feel great. So here’s what I’ve done to achieve the rounded corner box in pure CSS – no [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Though it does look great, I haven’t given it a try until the other day when I was developing <a href="http://www.smartbabynames.com">smartbabynames.com</a>. Notice the previous and next link immediately below the boy image at here:</p>

<p><a href="http://www.smartbabynames.com/meaning/boy/Langleigh/">http://www.smartbabynames.com/meaning/boy/Langleigh/</a></p>
<p>They look and feel great.</p>
<p>So here’s what I’ve done to achieve the rounded corner box in pure CSS – no images nor whatever. Just CSS:</p>
<pre><code>.rounded {
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	-khtml-border-radius: 2px;
	border-radius: 2px;
}</code></pre>
<p>Tested across major modern browsers other than IE. Sure it doesn’t work in IE6, but not sure if it works in IE7, IE8, IE9, etc. But let me know if you know.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/08/css-curved-or-rounded-corner-of-boxes-and-images-using-border-radius.html" rel="bookmark" title="August 28, 2009">CSS: Curved or Rounded Corner Boxes and Images Using border-radius</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-double-border.html" rel="bookmark" title="February 8, 2009">CSS: Double Border</a></li>
<li><a href="http://www.kavoir.com/2009/06/ask-google-for-proton-mass-planet-or-suns-mass-and-radius.html" rel="bookmark" title="June 13, 2009">Ask Google for Astronomical Unit, proton mass, planet or sun&#8217;s mass and radius</a></li>
<li><a href="http://www.kavoir.com/2009/04/css-the-wordpress-administration-control-panel-buttons.html" rel="bookmark" title="April 20, 2009">CSS: Styling WordPress Administration Control Panel Buttons</a></li>
<li><a href="http://www.kavoir.com/2009/03/cross-browser-compatible-html-table-cellspacing-and-css-border-spacing-together.html" rel="bookmark" title="March 23, 2009">Cross browser compatible HTML table cellspacing and CSS border-spacing property</a></li>
</ul>
<p><!-- Similar Posts took 4.860 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2011/03/pure-css-rounded-corner-no-images.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Best and Newest HTML5 Books (and Some CSS3 Books)</title>
		<link>http://www.kavoir.com/2010/07/best-and-newest-html-5-books-and-some-css3-books.html</link>
		<comments>http://www.kavoir.com/2010/07/best-and-newest-html-5-books-and-some-css3-books.html#comments</comments>
		<pubDate>Mon, 05 Jul 2010 04:04:46 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Client Side Coding Books]]></category>
		<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[Rich Internet Application]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2010/07/best-and-newest-html-5-books-and-some-css3-books.html</guid>
		<description><![CDATA[HTML5 and CSS3 are becoming a reality. To be better prepared and armed with the latest technologies of the web so that we stay on the cutting edge when creating stuff, I have found some of the best book titles at Amazon about HTML 5 and CSS 3. Note that several of these books have [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>HTML5 and CSS3 are becoming a reality. To be better prepared and armed with the latest technologies of the web so that we stay on the cutting edge when creating stuff, I have found some of the best book titles at Amazon about HTML 5 and CSS 3. Note that several of these books have not been released yet. You can pre-order and receive them when they are out.<span id="more-1967"></span></p>
<h4>Web Developers / Designers’ Books:</h4>
<ol>
<li><a href="http://www.kavoir.com/2009/06/best-books-of-html-and-xhtml-to-learn-how-to-create-web-pages-sites-with-html-and-css.html">Best HTML Books</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-css-books-to-learn-css-web-design.html">Best CSS Books</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-javascript-books-for-learning-javascript-programming-and-development.html">Best JavaScript Books</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-php-books-for-learning-php-and-mysql.html">Best PHP Books</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-mysql-books-to-learn-mysql-database-php-applications.html">Best MySQL Books</a></li>
<li><a href="http://www.shanghaiwebhosting.com/web-hosting-tutorials/best-linux-server-administration-books-for-learning-linux">Best Linux Books</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-books-of-apache-web-server-to-learn-apache-and-use-it.html">Best Apache Books</a> (<a href="http://www.shanghaiwebhosting.com/web-hosting-tips/best-books-about-apache-mod_rewrite-module-htaccess-books">mod_rewrite Books</a>)</li>
<li><a href="http://www.shanghaiwebhosting.com/web-hosting-tutorials/best-web-hosting-books-to-learn-about-web-hosting">Best Web Hosting Books</a></li>
</ol>
<h3><a href="http://www.amazon.com/gp/product/0596806027?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596806027">HTML5: Up and Running</a></h3>
<p><a href="http://www.amazon.com/gp/product/0596806027?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596806027"><img style="display: inline; border: 0px;" title="html 5 up and running" src="http://www.kavoir.com/wp-content/uploads/2010/07/html5upandrunning.jpg" border="0" alt="html 5 up and running" width="222" height="291" /></a></p>
<p>Here&#8217;s a godsend <a href="http://diveintohtml5.org/">online book for learning HTML5</a> written by <a href="http://diveintomark.org/">Mark Pilgrim</a> as well.</p>
<h3><a href="http://www.amazon.com/gp/product/0240813286?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0240813286">HTML5: Designing Rich Internet Applications (Visualizing the Web)</a></h3>
<p><a href="http://www.amazon.com/gp/product/0240813286?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0240813286"><img style="display: inline; border: 0px;" title="HTML5 Designing Rich Internet Applications (Visualizing the Web)" src="http://www.kavoir.com/wp-content/uploads/2010/07/HTML5DesigningRichInternetApplicationsVisualizingtheWeb.jpg" border="0" alt="HTML5 Designing Rich Internet Applications (Visualizing the Web)" width="224" height="296" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/1430228741?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430228741">Beginning HTML5 and CSS3: Next Generation Web Standards</a></h3>
<p><a href="http://www.amazon.com/gp/product/1430228741?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430228741"><img style="display: inline; border: 0px;" title="Beginning HTML5 and CSS3 Next Generation Web Standards" src="http://www.kavoir.com/wp-content/uploads/2010/07/BeginningHTML5andCSS3NextGenerationWebStandards.jpg" border="0" alt="Beginning HTML5 and CSS3 Next Generation Web Standards" width="223" height="298" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/1430227907?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430227907">Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development</a></h3>
<p><a href="http://www.amazon.com/gp/product/1430227907?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430227907"><img style="display: inline; border: 0px;" title="Pro HTML5 Programming Powerful APIs for Richer Internet Application Development" src="http://www.kavoir.com/wp-content/uploads/2010/07/ProHTML5ProgrammingPowerfulAPIsforRicherInternetApplicationDevelopment.jpg" border="0" alt="Pro HTML5 Programming Powerful APIs for Richer Internet Application Development" width="223" height="294" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/0321687299?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321687299">Introducing HTML5 (Voices That Matter)</a></h3>
<p><a href="http://www.amazon.com/gp/product/0321687299?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321687299"><img style="display: inline; border: 0px;" title="Introducing HTML5 (Voices That Matter)" src="http://www.kavoir.com/wp-content/uploads/2010/07/IntroducingHTML5VoicesThatMatter.jpg" border="0" alt="Introducing HTML5 (Voices That Matter)" width="231" height="297" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/1430230061?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430230061">Beginning iPhone Web Apps: HTML5, CSS3, and JavaScript for WebKit</a></h3>
<p><a href="http://www.amazon.com/gp/product/1430230061?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1430230061"><img style="display: inline; border: 0px;" title="Beginning iPhone Web Apps HTML5, CSS3, and JavaScript for WebKit" src="http://www.kavoir.com/wp-content/uploads/2010/07/BeginningiPhoneWebAppsHTML5CSS3andJavaScriptforWebKit.jpg" border="0" alt="Beginning iPhone Web Apps HTML5, CSS3, and JavaScript for WebKit" width="223" height="296" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/0321719913?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321719913">HTML5 Now: A Step-by-Step Video Tutorial for Getting Started Today (Voices That Matter)</a></h3>
<p><a href="http://www.amazon.com/gp/product/0321719913?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321719913"><img style="display: inline; border: 0px;" title="HTML5 Now A Step-by-Step Video Tutorial for Getting Started Today (Voices That Matter)" src="http://www.kavoir.com/wp-content/uploads/2010/07/HTML5NowAStepbyStepVideoTutorialforGettingStartedTodayVoicesThatMatter.jpg" border="0" alt="HTML5 Now A Step-by-Step Video Tutorial for Getting Started Today (Voices That Matter)" width="211" height="298" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/0321725530?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321725530">HTML5 Straight to the Point: Using HTML5 with CSS3 and JavaScript</a></h3>
<p><a href="http://www.amazon.com/gp/product/0321725530?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321725530"><img style="display: inline; border: 0px;" title="HTML5 Straight to the Point Using HTML5 with CSS3 and JavaScript" src="http://www.kavoir.com/wp-content/uploads/2010/07/HTML5StraighttothePointUsingHTML5withCSS3andJavaScript.jpg" border="0" alt="HTML5 Straight to the Point Using HTML5 with CSS3 and JavaScript" width="229" height="297" /></a></p>
<h3><a href="http://www.amazon.com/gp/product/0321719638?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321719638">CSS3: Visual QuickStart Guide (5th Edition)</a></h3>
<p><a href="http://www.amazon.com/gp/product/0321719638?ie=UTF8&amp;tag=maawe-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0321719638"><img style="display: inline; border: 0px;" title="CSS3 Visual QuickStart Guide (5th Edition)" src="http://www.kavoir.com/wp-content/uploads/2010/07/CSS3VisualQuickStartGuide5thEdition.jpg" border="0" alt="CSS3 Visual QuickStart Guide (5th Edition)" width="229" height="295" /></a><br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/06/best-css-books-to-learn-css-web-design.html" rel="bookmark" title="June 17, 2009">Best CSS Books to Learn CSS Web Design</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-javascript-books-for-learning-javascript-programming-and-development.html" rel="bookmark" title="June 17, 2009">Best JavaScript Books for Learning JavaScript Programming and Development</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-php-books-for-learning-php-and-mysql.html" rel="bookmark" title="June 17, 2009">Best PHP Books for Learning PHP Development and Programming (with MySQL)</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-books-of-html-and-xhtml-to-learn-how-to-create-web-pages-sites-with-html-and-css.html" rel="bookmark" title="June 17, 2009">Best Books of HTML and XHTML to Learn How to Create Web Pages / Sites with HTML and CSS</a></li>
<li><a href="http://www.kavoir.com/2009/06/best-mysql-books-to-learn-mysql-database-php-applications.html" rel="bookmark" title="June 17, 2009">Best MySQL Books to Learn MySQL Database Programming and Development (+ PHP Applications)</a></li>
</ul>
<p><!-- Similar Posts took 2.879 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/07/best-and-newest-html-5-books-and-some-css3-books.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)</title>
		<link>http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html</link>
		<comments>http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html#comments</comments>
		<pubDate>Sat, 29 May 2010 07:11:01 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html</guid>
		<description><![CDATA[Most of the existing URL cloaking services are only a redirection by a randomly generated short URL. The real URL of the target website or web page will eventually be revealed when the visitor arrives at it after the obscure redirection. So how to ACTUALLY hide and cloak the destination URL of any website or [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Most of the existing URL cloaking services are only a redirection by a randomly generated short URL. The real URL of the target website or web page will eventually be revealed when the visitor arrives at it after the obscure redirection. So how to ACTUALLY hide and cloak the destination URL of any website or web page so the address bar of the browser stays unchanged? In other words, how to create a stealth forwarding?</p>

<p>With a simple HTML web page, you can do that very easily. Copy and paste the following HTML code into a file named google.html and save it at example.com/google.html:</p>
<pre><code>&lt;!doctype html&gt;
&lt;html&gt;

&lt;head&gt;
&lt;title&gt;Google&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body {margin:0;}
iframe {padding:0;border:0;position:absolute;width:100%;height:100%;}
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;iframe src=&quot;<strong>http://www.google.com/</strong>&quot;&gt;&lt;/iframe&gt;
&lt;/body&gt;

&lt;/html&gt;</code></pre>
<p>Now navigate to your website http://www.example.com/google.html. It’s Google’s home page no problem. Better yet, the URL in the browser address bar doesn’t change to http://www.google.com/.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2007/03/spin-your-first-web-page.html" rel="bookmark" title="March 29, 2007">Create your first web page &#8211; Learn XHTML and Make Web pages</a></li>
<li><a href="http://www.kavoir.com/2009/04/php-send-html-email-mail.html" rel="bookmark" title="April 23, 2009">PHP: Send HTML Email (mail)</a></li>
<li><a href="http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html" rel="bookmark" title="September 3, 2009">How to redirect the visitor to another page or website?</a></li>
<li><a href="http://www.kavoir.com/2009/01/html-doctype-text-made-easy-worlds-tiniest-html-doctype-dtd-declaration.html" rel="bookmark" title="January 9, 2009">HTML DocType Text: World’s Tiniest and Shortest HTML DocType Declaration</a></li>
<li><a href="http://www.kavoir.com/2010/07/how-to-include-a-javascript-file-inside-a-javascript-file.html" rel="bookmark" title="July 22, 2010">How to include a JavaScript file inside a JavaScript file?</a></li>
</ul>
<p><!-- Similar Posts took 2.698 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: How to write CSS rules to detect or target Chrome, Safari or Opera browsers only?</title>
		<link>http://www.kavoir.com/2010/04/css-how-to-write-css-rules-to-detect-or-target-chrome-safari-or-opera-browsers-only.html</link>
		<comments>http://www.kavoir.com/2010/04/css-how-to-write-css-rules-to-detect-or-target-chrome-safari-or-opera-browsers-only.html#comments</comments>
		<pubDate>Thu, 01 Apr 2010 12:57:02 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[PHP Tips & Tutorials]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=1899</guid>
		<description><![CDATA[It&#8217;s easy to target firefox, just write as expected by the standards, at least most of the time. It&#8217;s also easy to target IE and any specific versions of them by a few of the famous hacks or the IE conditional comments to selectively include style sheets by version numbers. But how does one write [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It&#8217;s easy to target firefox, just write as expected by the standards, at least most of the time. It&#8217;s also easy to target IE and any specific versions of them by a few of the famous hacks or the <a href="http://www.quirksmode.org/css/condcom.html">IE conditional comments</a> to selectively include style sheets by version numbers. But how does one write CSS rules and make the browsers to recognize that they are particularly for Chrome, Safari or Opera?</p>

<p>Use PHP to distinguish the browsers.</p>
<pre><code>echo $_SERVER['<strong>HTTP_USER_AGENT</strong>'];</code></pre>
<p>Put this line in a .php file, upload the file to your server and browse to it by all the different browsers you have. From the server side, <code>$_SERVER['HTTP_USER_AGENT']</code> contains all the information PHP knows about the source of the request, namely your browser. Now that the server is able to recognize the client browser, you can serve up different versions of a web page by PHP and include different CSS classes according to the browser type:</p>
<pre><code>if (strpos($_SERVER['HTTP_USER_AGENT'], '<strong>Safari</strong>') !== false) {
	// Chrome user agent string contains both 'Chrome' and 'Safari'
	if (strpos($_SERVER['HTTP_USER_AGENT'], '<strong>Chrome</strong>') !== false) {
		echo '&lt;body class=&quot;chrome&quot;&gt;';
	} else {
		echo '&lt;body class=&quot;safari&quot;&gt;';
	}
} elseif (strpos($_SERVER['HTTP_USER_AGENT'], '<strong>Opera</strong>') !== false) {
	echo '&lt;body class=&quot;opera&quot;&gt;';
} else {
	echo '&lt;body&gt;';
}</code></pre>
<p>The rest is very simple. Just cascade your styles by additional classes to adapt your design to Safari, Chrome or Opera specifically. You can do a lot more than this by the server side variable <code>$_SERVER['HTTP_USER_AGENT']</code>, such as detecting browser versions and operating systems or writing your own web traffic statistics software.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/08/css-rotate-text-image-elements-by-90-180-or-270-degrees.html" rel="bookmark" title="August 25, 2009">CSS: Rotate Text / Image Elements by 90, 180 or 270 Degrees</a></li>
<li><a href="http://www.kavoir.com/2009/08/css-curved-or-rounded-corner-of-boxes-and-images-using-border-radius.html" rel="bookmark" title="August 28, 2009">CSS: Curved or Rounded Corner Boxes and Images Using border-radius</a></li>
<li><a href="http://www.kavoir.com/2009/01/php4-class-differences-from-php5.html" rel="bookmark" title="January 14, 2009">PHP4 Class &ndash; differences from PHP5</a></li>
<li><a href="http://www.kavoir.com/2009/03/cross-browser-compatible-html-table-cellspacing-and-css-border-spacing-together.html" rel="bookmark" title="March 23, 2009">Cross browser compatible HTML table cellspacing and CSS border-spacing property</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-double-border.html" rel="bookmark" title="February 8, 2009">CSS: Double Border</a></li>
</ul>
<p><!-- Similar Posts took 3.005 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/04/css-how-to-write-css-rules-to-detect-or-target-chrome-safari-or-opera-browsers-only.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Use Relative Protocol URL Address to Automatically Determine Web Address Protocol (HTTP or HTTPS)</title>
		<link>http://www.kavoir.com/2010/03/use-relative-protocol-url-address-to-automatically-determine-web-address-protocol-http-or-https.html</link>
		<comments>http://www.kavoir.com/2010/03/use-relative-protocol-url-address-to-automatically-determine-web-address-protocol-http-or-https.html#comments</comments>
		<pubDate>Sat, 06 Mar 2010 04:12:56 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2010/03/use-relative-protocol-url-address-to-automatically-determine-web-address-protocol-http-or-https.html</guid>
		<description><![CDATA[Here’s a really interesting bit about how you can omit the protocol part of a web address in your web pages. The predominant belief is that an HTTP:// or an HTTPS:// has got to be prefixed to a URL or it won’t work, truth is, it will. Try the following link: Click Me! View the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img src="http://www.kavoir.com/wp-content/uploads/2010/03/http-https.jpg" alt="http or https" title="http or https" width="110" height="104" class="alignright size-full wp-image-1802" />Here’s a really interesting bit about how you can omit the protocol part of a web address in your web pages. The predominant belief is that an HTTP:// or an HTTPS:// has got to be prefixed to a URL or it won’t work, truth is, it will. Try the following link:</p>

<p><a href="//www.kavoir.com/">Click Me!</a></p>
<p>View the source of this entry and you’ll see the link code:</p>
<pre><code>&lt;p&gt;&lt;a href=&quot;//www.kavoir.com/&quot;&gt;&lt;/a&gt;Click Me!&lt;/p&gt;</code></pre>
<p>There is no HTTP nor HTTPS protocol at the beginning of the URL. Yet, it’s working properly. Browsers will automatically use the same protocol as that of the current URL. It’s also working for other URL sources in HTML such as images or JavaScript scripts. Wherever you need to specify a URL.</p>
<p>This is very useful when your site is using SSL thus all the URLs start with <strong>HTTPS://</strong>. Because this approach lets the browser to automatically use the current protocol, you will not be blamed for using HTTP:// URLs on an HTTPS page and causing the notorious unsafe content warning to the users. It will also be a breeze to switch between the HTTP version and HTTPS version of your site. It’s totally automatic.</p>
<p>However, I don’t know what this would do in terms of SEO and how Google sees any URLs without the protocol part. Learn more about <a href="http://www.kavoir.com/2009/03/http-explained-what-does-http-stand-for-what-is-http-meaning-and-https-definition.html">what the hell HTTP is</a>.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/03/http-explained-what-does-http-stand-for-what-is-http-meaning-and-https-definition.html" rel="bookmark" title="March 24, 2009">HTTP Explained: What Does HTTP Stand For, What is HTTP Meaning and HTTP&#8217;s Definition?</a></li>
<li><a href="http://www.kavoir.com/2009/09/best-way-to-hide-and-cloak-your-affiliate-links.html" rel="bookmark" title="September 19, 2009">Best way to hide and cloak your affiliate links?</a></li>
<li><a href="http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html" rel="bookmark" title="August 28, 2011">HTML: Make a Page Refresh Every xx Seconds</a></li>
<li><a href="http://www.kavoir.com/2007/03/check-links-on-your-site.html" rel="bookmark" title="March 30, 2007">Check broken links on your site with this free tool</a></li>
<li><a href="http://www.kavoir.com/2009/08/linux-wget-command-to-download-and-mirror-a-website-in-static-local-copy.html" rel="bookmark" title="August 2, 2009">Linux wget Command to Download and Mirror a Website in Static Local Copy</a></li>
</ul>
<p><!-- Similar Posts took 5.537 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/03/use-relative-protocol-url-address-to-automatically-determine-web-address-protocol-http-or-https.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML: Make Content Editable in Element / Tags without JavaScript</title>
		<link>http://www.kavoir.com/2010/03/html-content-editable-element-tags.html</link>
		<comments>http://www.kavoir.com/2010/03/html-content-editable-element-tags.html#comments</comments>
		<pubDate>Fri, 05 Mar 2010 15:04:34 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2010/03/html-content-editable-element-tags.html</guid>
		<description><![CDATA[It’s not well known but this feature was invented by Microsoft and has been implemented across all major modern browsers ever since IE 5.5. Adding an attribute of contenteditable and assign a value of “true” to it makes the content value / inner text of that element editable by a single click: &#60;blockquote contenteditable=&#34;true&#34;&#62;Click to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It’s not well known but this feature was invented by Microsoft and has been implemented across all major modern browsers ever since IE 5.5. Adding an attribute of <strong>contenteditable</strong> and assign a value of “true” to it makes the content value / inner text of that element editable by a single click:</p>

<pre><code>&lt;blockquote <strong>contenteditable</strong>=&quot;true&quot;&gt;Click to edit me!&lt;/blockquote&gt;</code></pre>
<p>Try it live:</p>
<blockquote contenteditable="true"><p>Click to edit me!</p></blockquote>
<p>When you are done editing, just hit Enter (if it&#8217;s an <strong>inline</strong> element) or blur the cursor focus from the editing region (if it&#8217;s a <strong>block</strong> element). Theoretically, this attribute can be added to any HTML tags to make them immediately editable without the help of any JavaScript at all. You can add it to a div, a span or a td.</p>
<p>Now what can we do with this new trick?</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2010/07/javascript-how-to-set-focus-to-form-elements.html" rel="bookmark" title="July 22, 2010">JavaScript: How to set focus to form elements?</a></li>
<li><a href="http://www.kavoir.com/2009/08/how-to-use-the-html-cite-tag-and-the-cite-attribute.html" rel="bookmark" title="August 27, 2009">How to use the HTML cite tag and the cite attribute?</a></li>
<li><a href="http://www.kavoir.com/2009/03/styling-an-alphabet-of-26-letters-in-html-and-css.html" rel="bookmark" title="March 5, 2009">Styling an Alphabet of 26 Letters in HTML and CSS</a></li>
<li><a href="http://www.kavoir.com/2009/06/html-change-text-and-font-colors.html" rel="bookmark" title="June 16, 2009">HTML: Change Text and Font Colors</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-difference-between-opacity0-visibilityhidden-and-displaynone.html" rel="bookmark" title="February 8, 2009">CSS: Difference between opacity:0, visibility:hidden and display:none</a></li>
</ul>
<p><!-- Similar Posts took 7.210 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2010/03/html-content-editable-element-tags.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>You can actually use percentage values for padding and margin</title>
		<link>http://www.kavoir.com/2009/09/you-can-actually-use-percentage-values-for-padding-or-margin.html</link>
		<comments>http://www.kavoir.com/2009/09/you-can-actually-use-percentage-values-for-padding-or-margin.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 00:57:21 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/09/you-can-actually-use-percentage-values-for-padding-or-margin.html</guid>
		<description><![CDATA[Which seems quite new to me as I have never used any percentage values on them before. Took some tests and I found out that all major modern browsers supported percentage values for padding and margin very well, even IE6. This should come very handy in positioning things up according to the parent width. See [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Which seems quite new to me as I have never used any percentage values on them before. Took some tests and I found out that all major modern browsers supported percentage values for padding and margin very well, even IE6.</p>

<p>This should come very handy in positioning things up according to the parent width. See how I did with the title of this site: <a href="http://www.rackspacepromocode.com">http://www.rackspacepromocode.com</a></p>
<p><a href="http://www.rackspacepromocode.com"><img class="size-full wp-image-1440 alignnone" title="rackspace cloud sites promo code" src="http://www.kavoir.com/wp-content/uploads/2009/09/rackspacecloudpromocode.jpg" alt="rackspace cloud sites promo code" width="300" height="84" /></a></p>
<p>You can resize the browser window to see how there&#8217;s always a 8% left padding to the &lt;h1&gt; title.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/02/css-complementary-background-in-float.html" rel="bookmark" title="February 6, 2009">CSS: Complementary Background in Float</a></li>
<li><a href="http://www.kavoir.com/2009/01/html-css-drop-down-menu-made-easy-suckerfish-enhanced.html" rel="bookmark" title="January 19, 2009">HTML CSS Drop Down Menu Made Easy &ndash; SuckerFish Enhanced</a></li>
<li><a href="http://www.kavoir.com/2010/05/the-ultimate-way-to-cloak-and-hide-any-website-address-or-url-stealth-forwarding.html" rel="bookmark" title="May 29, 2010">The Ultimate Way to Cloak and Hide any Website Address or URL (Stealth Forwarding)</a></li>
<li><a href="http://www.kavoir.com/2009/01/extended-css-sprites-for-foreground-images-img.html" rel="bookmark" title="January 9, 2009">Extended CSS Sprites for Foreground Images &lt;img&gt;</a></li>
<li><a href="http://www.kavoir.com/2009/01/php-resize-image-and-store-to-file.html" rel="bookmark" title="January 15, 2009">PHP: Resize Image and Store to File</a></li>
</ul>
<p><!-- Similar Posts took 4.208 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/09/you-can-actually-use-percentage-values-for-padding-or-margin.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to prevent or stop my website and pages from being indexed by search engines?</title>
		<link>http://www.kavoir.com/2009/09/how-to-prevent-or-stop-my-website-and-pages-from-being-indexed-by-search-engines.html</link>
		<comments>http://www.kavoir.com/2009/09/how-to-prevent-or-stop-my-website-and-pages-from-being-indexed-by-search-engines.html#comments</comments>
		<pubDate>Thu, 03 Sep 2009 07:34:04 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/09/how-to-prevent-or-stop-my-website-and-pages-from-being-indexed-by-search-engines.html</guid>
		<description><![CDATA[It’s really weird that one would like to do this but perhaps you are running some private website dedicated to just an intimate group. Anyway, you can stop search engines indexing your web pages by putting a meta tag in the header section of them: &#60;meta name=&#34;robots&#34; content=&#34;noindex&#34; /&#62; That&#8217;s it. Any search engines abiding [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It’s really weird that one would like to do this but perhaps you are running some private website dedicated to just an intimate group. Anyway, you can stop search engines indexing your web pages by putting a meta tag in the header section of them:</p>

<pre><code>&lt;meta name=&quot;robots&quot; content=&quot;<strong>noindex</strong>&quot; /&gt;</code></pre>
<p>That&#8217;s it. Any search engines abiding by the rules especially Google will never index this page or exclude all the pages with this meta tag out of their index database. You can also prevent search engines from requesting and reading your website or pages in the first place by the help of a <a href="http://www.kavoir.com/2009/07/use-robots-txt-disallow-directive-to-shut-out-spiders-and-search-engine-robots.html">robots.txt</a> which specifies to what areas of your site are they not welcome.</p>
<p>Adding a rel=&quot;nofollow&quot; tag helps too in that search engines will not follow this link to the destination page, let alone indexing it:</p>
<pre><code>&lt;a href=&quot;http://www.example.com&quot; rel=&quot;<strong>nofollow</strong>&quot;&gt;example site&lt;/a&gt;</code></pre>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/03/quick-tutorial-robotstxt-disallow-all-and-block-search-engine-spiders.html" rel="bookmark" title="March 10, 2009">Robots.txt Disallow All and Block Search Engine Spiders</a></li>
<li><a href="http://www.kavoir.com/2009/07/use-robots-txt-disallow-directive-to-shut-out-spiders-and-search-engine-robots.html" rel="bookmark" title="July 31, 2009">Use robots.txt Disallow directive to forbid spiders and search engine robots</a></li>
<li><a href="http://www.kavoir.com/2010/02/how-to-slow-down-the-frequency-googlebot-search-engine-crawler-visits-your-site.html" rel="bookmark" title="February 17, 2010">How to slow down the frequency Googlebot (search engine crawler) visits your site?</a></li>
<li><a href="http://www.kavoir.com/2007/06/what-is-wrong-with-supplemental-result.html" rel="bookmark" title="June 3, 2007">What is wrong with &#8216;Supplemental result&#8217;?</a></li>
<li><a href="http://www.kavoir.com/2010/09/auto-generated-content-by-user-searches.html" rel="bookmark" title="September 29, 2010">Auto-generated content by user searches</a></li>
</ul>
<p><!-- Similar Posts took 4.379 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/09/how-to-prevent-or-stop-my-website-and-pages-from-being-indexed-by-search-engines.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to redirect the visitor to another page or website?</title>
		<link>http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html</link>
		<comments>http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html#comments</comments>
		<pubDate>Thu, 03 Sep 2009 07:24:24 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[JavaScript Tips & Tutorials]]></category>
		<category><![CDATA[PHP Tips & Tutorials]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html</guid>
		<description><![CDATA[This is one of the most common tasks in website development and also one of the most frequently asked question according to some of the keyword research tools. Well, you have 3 ways to achieve a web page redirection. Use PHP header() function to modify and send a HTTP Location header: header(&#34;Location: /thankyou.html&#34;); // redirect [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is one of the most common tasks in website development and also one of the most frequently asked question according to some of the keyword research tools. Well, you have 3 ways to achieve a web page redirection. </p>

<ol>
<li>Use PHP <strong>header</strong>() function to modify and send a HTTP <strong>Location</strong> header:       </p>
<p><code><strong>header</strong>(&quot;Location: /thankyou.html&quot;); // redirect the visitor to the /thankyou.html page on the same website</code>       </p>
<p><code><strong>header</strong>(&quot;Location: http://www.microsoft.com&quot;); // redirect the visitor to Microsoft         </p>
<p></code>You will need to make sure there&#8217;s no output at all before the calling of the header function to avoid any <a href="http://www.kavoir.com/2008/05/warning-session_start-cannot-send-session-cookie-headers-already-sent.html">headers already sent errors</a>. </li>
<li>Use the meta tag of HTML:
<p><code>&lt;<strong>meta</strong> http-equiv=&quot;<strong>refresh</strong>&quot; content=&quot;3;<strong>url</strong>=http://www.example.com/hi.html&quot;&gt;</code>       </p>
<p>Which will simply refresh the visitor&#8217;s browser window and redirect to http://www.example.com/hi.html in 3 seconds. </li>
<li>Use JavaScript to manipulate the browser window location object:
<p><code>&lt;body <strong>onload</strong>=&quot;document.<strong>location</strong>='http://www.example.com/'&quot;&gt;</code> </li>
</ol>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2011/08/html-make-a-page-refresh-every-xx-seconds.html" rel="bookmark" title="August 28, 2011">HTML: Make a Page Refresh Every xx Seconds</a></li>
<li><a href="http://www.kavoir.com/2011/12/redirect-404-error-to-home-page.html" rel="bookmark" title="December 25, 2011">Redirect 404 Error to Home Page</a></li>
<li><a href="http://www.kavoir.com/2009/08/javascript-stop-and-prevent-others-from-framing-your-site-and-page.html" rel="bookmark" title="August 30, 2009">PHP, JavaScript: Stop and prevent others from framing your site or web page</a></li>
<li><a href="http://www.kavoir.com/2009/06/javascript-open-or-redirect-to-another-page-site-location.html" rel="bookmark" title="June 16, 2009">JavaScript: Open or Redirect to Another Page / Site / Location</a></li>
<li><a href="http://www.kavoir.com/2009/09/best-way-to-hide-and-cloak-your-affiliate-links.html" rel="bookmark" title="September 19, 2009">Best way to hide and cloak your affiliate links?</a></li>
</ul>
<p><!-- Similar Posts took 16.851 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/09/how-to-redirect-the-visitor-to-another-page-or-website.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS: How to align HTML input checkbox and radio with text on the same line?</title>
		<link>http://www.kavoir.com/2009/08/css-how-to-align-html-input-checkbox-and-radio-with-text-in-the-same-line.html</link>
		<comments>http://www.kavoir.com/2009/08/css-how-to-align-html-input-checkbox-and-radio-with-text-in-the-same-line.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 14:59:12 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/08/css-how-to-align-html-input-checkbox-and-radio-with-text-in-the-same-line.html</guid>
		<description><![CDATA[The common HTML form input controls of checkbox (&#60;input type=”checkbox”&#62;) and radio (&#60;input type=”radio”&#62;) can be tricky to be aligned correctly in the same line with the text or image across all modern browsers. Without any CSS styling, they usually place themselves 3 or more pixels above or below the normal text flow which look [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The common HTML form input controls of checkbox (&lt;input type=”<strong>checkbox</strong>”&gt;) and radio (&lt;input type=”<strong>radio</strong>”&gt;) can be tricky to be aligned correctly in the same line with the text or image across all modern browsers. Without any CSS styling, they usually place themselves 3 or more pixels above or below the normal text flow which look anything but nice.</p>

<p>Setting margin or padding won’t help, the whole line would be shifted either downward or upward. So what can be done to align the stubborn input controls nicely with the texts? You can take one of the 3 approaches to achieve this.</p>
<ol>
<li><strong>Float</strong> the checkbox or radio to the left. </li>
<li>Using <strong>vertical-align:middle</strong> to align the checkbox and radio in the middle with the rest of the text. It’d look much better after you have vertically aligned the controls in the middle by this, but sometimes it also helps with 1px or 2 margin manipulation.</li>
<li>Relatively position the input tags of checkboxes and radios 1 or 2 pixels above or below its original position with      <br /><code><strong>position</strong>:<strong>relative</strong>;         <br />top:1px; /* or bottom:1px; */</code>      <br />Which would move the control 1px downward. </li>
</ol>
<p>Generally, the 2nd is the best of the 3 approaches.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/03/css-align-right-make-text-or-image-aligned-right-in-html-page.html" rel="bookmark" title="March 2, 2009">CSS: Align Right – Make text or image aligned right in HTML page</a></li>
<li><a href="http://www.kavoir.com/2007/12/3-column-layout-left-and-right-fixed-width-center-fluid.html" rel="bookmark" title="December 4, 2007">3 column layout, left and right fixed width, center fluid</a></li>
<li><a href="http://www.kavoir.com/2009/03/css-align-left-make-text-or-image-aligned-left-with-css.html" rel="bookmark" title="March 2, 2009">CSS: Align Left – Make text or image aligned left with CSS</a></li>
<li><a href="http://www.kavoir.com/2009/03/css-align-center-center-align-texts-or-images-in-html-and-css.html" rel="bookmark" title="March 2, 2009">CSS: Align Center – Center Align Texts or Images in HTML and CSS</a></li>
<li><a href="http://www.kavoir.com/2009/03/styling-an-alphabet-of-26-letters-in-html-and-css.html" rel="bookmark" title="March 5, 2009">Styling an Alphabet of 26 Letters in HTML and CSS</a></li>
</ul>
<p><!-- Similar Posts took 4.038 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/08/css-how-to-align-html-input-checkbox-and-radio-with-text-in-the-same-line.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Please, by all means, don&#8217;t use overflow:hidden for content!</title>
		<link>http://www.kavoir.com/2009/08/please-by-all-means-dont-use-overflowhidden.html</link>
		<comments>http://www.kavoir.com/2009/08/please-by-all-means-dont-use-overflowhidden.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 08:13:05 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>
		<category><![CDATA[Web Design Tips and Insights]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/08/please-by-all-means-dont-use-overflowhidden.html</guid>
		<description><![CDATA[No matter how fairy or pretty your design / template is, never use overflow:hidden for content containers. Content comes a thousand times more important than any design or layout. I don’t care how much you hold proud your artistic work and how you think accommodating the content in any way possible would ruin the holy [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>No matter how fairy or pretty your design / template is, never use overflow:hidden for content containers.</p>

<p>Content comes <strong>a thousand times</strong> more important than any design or layout. I don’t care how much you hold proud your artistic work and how you think accommodating the content in any way possible would ruin the holy sweet layout, when an image or a table with indispensable content that the readers / visitors are ultimately concerned about expands across the content areas and messing up with your fucking design, using <strong>overflow:hidden</strong> to restrict them is just plain STUPID and ANNOYING.</p>
<p>Please by all means, <strong>DO NOT</strong> use overflow:hidden for content containers! What really matters is the idea / content the design is trying to convey rather than the design itself.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2007/12/3-column-layout-left-and-right-fixed-width-center-fluid.html" rel="bookmark" title="December 4, 2007">3 column layout, left and right fixed width, center fluid</a></li>
<li><a href="http://www.kavoir.com/2011/02/linux-how-to-delete-remove-hidden-files-with-rm-command.html" rel="bookmark" title="February 12, 2011">Linux: How to delete / remove hidden files with &lsquo;rm&rsquo; command?</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-complementary-background-in-float.html" rel="bookmark" title="February 6, 2009">CSS: Complementary Background in Float</a></li>
<li><a href="http://www.kavoir.com/2010/03/its-not-your-business-its-who-you-are.html" rel="bookmark" title="March 3, 2010">It&rsquo;s not your business, it&rsquo;s who you are</a></li>
<li><a href="http://www.kavoir.com/2009/11/if-you-are-not-a-professional-designer-and-dont-want-to-look-stupid.html" rel="bookmark" title="November 8, 2009">If you are not a professional designer and don&rsquo;t want to look stupid</a></li>
</ul>
<p><!-- Similar Posts took 2.783 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/08/please-by-all-means-dont-use-overflowhidden.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Set width on inline elements with inline-block</title>
		<link>http://www.kavoir.com/2009/08/css-set-width-on-inline-elements-with-inline-block.html</link>
		<comments>http://www.kavoir.com/2009/08/css-set-width-on-inline-elements-with-inline-block.html#comments</comments>
		<pubDate>Fri, 28 Aug 2009 03:03:27 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[CSS & HTML Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/2009/08/css-set-width-on-inline-elements-with-inline-block.html</guid>
		<description><![CDATA[With display:block elements we can freely set the hard width of them. However for inline elements, width:200px simply won’t work at all. One approach is to float the element which usually causes other problems and isn’t handy at all. So how to set width to inline elements without floating them in CSS? The answer is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>With display:block elements we can freely set the hard width of them. However for inline elements, width:200px simply won’t work at all. One approach is to float the element which usually causes other problems and isn’t handy at all.</p>

<p>So how to set width to inline elements without floating them in CSS?</p>
<p>The answer is to use this to the CSS rule:</p>
<p> <code><strong>display</strong>:inline-block;</code>
<p>Now you can set a width to the inline-ly displayed element and it will extend to the specified width with blank space filling the extra length.</p>
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/01/elements-with-displayblock-and-height-gains-100-width-and-dont-float-in-ie6.html" rel="bookmark" title="January 6, 2009">Elements with display:block and height gains 100% width and don&rsquo;t float in IE6</a></li>
<li><a href="http://www.kavoir.com/2009/02/css-complementary-background-in-float.html" rel="bookmark" title="February 6, 2009">CSS: Complementary Background in Float</a></li>
<li><a href="http://www.kavoir.com/2009/03/styling-an-alphabet-of-26-letters-in-html-and-css.html" rel="bookmark" title="March 5, 2009">Styling an Alphabet of 26 Letters in HTML and CSS</a></li>
<li><a href="http://www.kavoir.com/2009/08/how-to-use-the-html-cite-tag-and-the-cite-attribute.html" rel="bookmark" title="August 27, 2009">How to use the HTML cite tag and the cite attribute?</a></li>
<li><a href="http://www.kavoir.com/2010/03/html-content-editable-element-tags.html" rel="bookmark" title="March 5, 2010">HTML: Make Content Editable in Element / Tags without JavaScript</a></li>
</ul>
<p><!-- Similar Posts took 4.114 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/08/css-set-width-on-inline-elements-with-inline-block.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

