<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tech Kungfu</title>
	<atom:link href="http://tekungfu.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tekungfu.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 06 Aug 2009 10:14:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tekungfu.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tech Kungfu</title>
		<link>http://tekungfu.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tekungfu.wordpress.com/osd.xml" title="Tech Kungfu" />
	<atom:link rel='hub' href='http://tekungfu.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hello WordPress!</title>
		<link>http://tekungfu.wordpress.com/2009/08/06/hello-wordpress/</link>
		<comments>http://tekungfu.wordpress.com/2009/08/06/hello-wordpress/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 06:47:38 +0000</pubDate>
		<dc:creator>adel ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tekungfu.wordpress.com/?p=3</guid>
		<description><![CDATA[About this blog.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tekungfu.wordpress.com&amp;blog=8892481&amp;post=3&amp;subd=tekungfu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey there, thank you for visiting tekungfu <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . This is kinda like my Hello world post(in other words my fist post). Tekungfu  is mostly about programming, mainly AJAX,CSS, PHP and Javascript and some of my views and rants too.  Hopefully in the coming days Ill post some tutorials and articles on web development. Thats pretty much it. Dont be dissapointed people. This is just a test run. Theres more coming! <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekungfu.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekungfu.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekungfu.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tekungfu.wordpress.com&amp;blog=8892481&amp;post=3&amp;subd=tekungfu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tekungfu.wordpress.com/2009/08/06/hello-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57f0d4d5f7d34a5048719b539745d416?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pacman99</media:title>
		</media:content>
	</item>
		<item>
		<title>Pure CSS rating system front-end</title>
		<link>http://tekungfu.wordpress.com/2009/08/06/css-rating-system/</link>
		<comments>http://tekungfu.wordpress.com/2009/08/06/css-rating-system/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 06:22:03 +0000</pubDate>
		<dc:creator>adel ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS rating system]]></category>
		<category><![CDATA[CSS rating system front end]]></category>
		<category><![CDATA[CSS tutorial]]></category>
		<category><![CDATA[Pure CSS Rating system]]></category>
		<category><![CDATA[rating system star]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[CSS rating system front-end Introduction This tutorial will show you how to create a pure CSS based 5 star rating system front end. To create this you need to know basic HTML and CSS. What&#8217; ll it do? Its just the front-end. So it doesnt actually deal with the rating process. It&#8217; ll provide some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tekungfu.wordpress.com&amp;blog=8892481&amp;post=1&amp;subd=tekungfu&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>CSS rating system front-end</h2>
<h3>Introduction</h3>
<p>This tutorial will show you how to create a pure CSS based  5 star rating system front end. To create this you need to know basic HTML and CSS.</p>
<h3>What&#8217; ll it do?</h3>
<p>Its just the front-end. So it doesnt actually deal with the rating process. It&#8217; ll  provide some eye candy for the user by highlighting stars according to the rating  user selects.</p>
<h3>Basic Mechanism</h3>
<p>I&#8217; ll post the  codes and explain what each statement does on the go.</p>
<h4>HTML</h4>
<p>&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221; class=&#8217;one&#8217;&gt;1&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221; class=&#8217;two&#8217;&gt;2&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221; class=&#8217;three&#8217;&gt;3&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221; class=&#8217;four&#8217;&gt;4&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221; class=&#8217;five&#8217;&gt;5&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
If you know some HTML. You might have understood that<br />
the rating system consists of an unordered list with five sub lists, anchors and classes, each to identify individual rating stars.</p>
<p>The idea behind the rating system is to use background and hover property of CSS to dynamically change the background image of  list as the user hovers mouse over the links. If you dont understand this, dont worry. Everything will become clearer once we cover the CSS part.</p>
<h4>CSS</h4>
<p><code><br />
#rter{position:relative;background:url(http://tekungfu.files.wordpress.com/2009/08/starem.png?w=16) repeat-x;height:16px;width:80px;margin:0px;padding:0px;overflow:hidden;}</code></p>
<p>#rter li{float:left:margin:0px;padding:0px;}</p>
<p>#rter li a{height:14px;width:16px;z-index:20;position:absolute;text-indent:100px;}</p>
<p>#rter li a:hover{background:url(http://tekungfu.files.wordpress.com/2009/08/starf.png?w=16) repeat -x;z-index:1;left:0px;}</p>
<p>#rter li a.one:hover{width:16px;}</p>
<p>#rter a.two{left:16px;}</p>
<p>#rter a.two:hover{width:32px;}</p>
<p>#rter a.three{left:32px;}</p>
<p>#rter a.three:hover{width:48px;}</p>
<p>#rter a.four{left:48px;}</p>
<p>#rter a.four:hover{width:64px;}</p>
<p>#rter a.five{left:64px;}</p>
<p>#rter a.five:hover{width:80px;}</p>
<p>I dont know about you, but this CSS looks puzzling to me, and I wrote it :p, wow. Its easy. Dont give up yet. This part covers the CSS properties for the rating system. The &#8220;rter&#8221; is the id for parent unordered list. Classes one,two,three,four and five each state rules for each stars. We must set z-index for the sub li  s as a bigger number because. We want the parent ul to overlap them. Dont forget to set the overflow as default because the text hides the text by pushing them sideways. If you dont hide that overflow, itll show the text 1,2,3,4,5. Thats not good.</p>
<p>You might wonder why I used 16px and 80px for the height and width of image. Thats because, the background image we are using has 16X16 dimension. I used 80 px for width because the parent ordered list represents the unrated empty stars, or the state when user hasnt hovered the mouse over any stars yet.Heres the empty star  <img src="http://tekungfu.files.wordpress.com/2009/08/starem.png?w=16" alt="empty star" /> So all 5 stars are empty and show an empty star. 5*16=80. We use repeat-x so that the image repeats itself and creates that effect.</p>
<p>Now for the other 5 classes. When the user hovers mouse over an anchor a it sets CSS rules so that it  brings the particular a to the front(using z-index:1),sets background as a full star <img src="http://tekungfu.files.wordpress.com/2009/08/staref.png?w=16" alt="null" />(using background:url()) and increases its width so that it shows the number of stars its supposed to, 4 stars for 4, 3 for 3 etc by repeating the background image.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekungfu.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekungfu.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekungfu.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tekungfu.wordpress.com&amp;blog=8892481&amp;post=1&amp;subd=tekungfu&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tekungfu.wordpress.com/2009/08/06/css-rating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/57f0d4d5f7d34a5048719b539745d416?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pacman99</media:title>
		</media:content>

		<media:content url="http://tekungfu.files.wordpress.com/2009/08/starem.png?w=16" medium="image">
			<media:title type="html">empty star</media:title>
		</media:content>

		<media:content url="http://tekungfu.files.wordpress.com/2009/08/staref.png?w=16" medium="image">
			<media:title type="html">null</media:title>
		</media:content>
	</item>
	</channel>
</rss>
