<?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>Riza Movahedi&#039;s iZafre &#187; Code</title>
	<atom:link href="http://i.zafre.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://i.zafre.com</link>
	<description></description>
	<lastBuildDate>Thu, 28 Jan 2010 17:00:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Active State in Navigation PURE CSS!</title>
		<link>http://i.zafre.com/2009/10/06/active-state-in-navigation-pure-css/</link>
		<comments>http://i.zafre.com/2009/10/06/active-state-in-navigation-pure-css/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 09:27:31 +0000</pubDate>
		<dc:creator>Riza</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://i.zafre.com/?p=63</guid>
		<description><![CDATA[Yes it&#8217;s old thing in web-developing, you always need a active state for menu and you do it with different ways like this but i did something today, It&#8217;s not big and new tech just what i figure it out and it&#8217;s so easy to do.
HTML
&#60;div id=&#8221;menu_wrapper&#8221;&#62;
&#60;ul&#62;
&#60;li&#62;&#60;span&#62;Dashboard&#60;/span&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Content&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Artwork&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Orders&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Users&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Stats&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Prints&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;
&#60;/div&#62;
CSS
#menu_wrapper ul{list-style:none;}
#menu_wrapper ul [...]]]></description>
			<content:encoded><![CDATA[<p>Yes it&#8217;s old thing in web-developing, you always need a active state for menu and you do it with different ways like <a href="http://www.sohtanaka.com/web-design/active-state-in-css-navigations/" target="_blank">this</a> but i did something today, It&#8217;s not big and new tech just what i figure it out and it&#8217;s so easy to do.</p>
<p>HTML</p>
<blockquote><p>&lt;div id=&#8221;menu_wrapper&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;span&gt;Dashboard&lt;/span&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Content&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Artwork&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Orders&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Users&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Stats&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Prints&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>CSS</p>
<blockquote><p>#menu_wrapper ul{list-style:none;}</p>
<p>#menu_wrapper ul li{float:left;display:block;}</p>
<p>#menu_wrapper ul li span{ display:block; padding:11px; background-color:#fff;height:20px; color:#323028; margin-right:10px;font-size:12px; text-decoration:none;}<br />
#menu_wrapper ul li a{ display:block; padding:11px; background-color:#000;height:20px; color:#323028; margin-right:10px;font-size:12px; color:#fff3c8; text-decoration:none;}<br />
#menu_wrapper ul li a:hover{ display:block; padding:11px; background-color:#fff;height:20px; color:#323028; margin-right:10px;font-size:12px; text-decoration:none;}</p></blockquote>
<p>So let me explain it to you. So easy! like piece of cake, As you can see we have small html upthere when we want to show it as a active page menu item. We just put span around it and unlink it. And i think css code is so obvies so play with it and have fun!</p>
<p>ps. you need some dynamic coding too.</p>
<p>-Riza</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi.zafre.com%2F2009%2F10%2F06%2Factive-state-in-navigation-pure-css%2F&amp;linkname=Active%20State%20in%20Navigation%20PURE%20CSS%21">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://i.zafre.com/2009/10/06/active-state-in-navigation-pure-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Div Height problem in Firefox.</title>
		<link>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/</link>
		<comments>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 06:24:10 +0000</pubDate>
		<dc:creator>Riza</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Div Height problem]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://i.zafre.com/?p=24</guid>
		<description><![CDATA[
Since i start working with XHTML format, i have this problem Div acting different in FF, and sometimes i add exact height for solving that problem but now finally i found the solution. and i really love to share it with you, because i know this problem is so common to all people.
HTML CODE:
&#60;div id=&#8221;content&#8221;&#62;&#60;/div&#62;
CSS [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://www.ece.arizona.edu/~alnashif/imgs/Firefox-logo.png" alt="" width="244" height="241" /></p>
<p>Since i start working with XHTML format, i have this problem Div acting different in FF, and sometimes i add exact height for solving that problem but now finally i found the solution. and i really love to share it with you, because i know this problem is so common to all people.</p>
<p><strong>HTML CODE:</strong><br />
&lt;div id=&#8221;content&#8221;&gt;&lt;/div&gt;</p>
<p><strong>CSS CODE:</strong><br />
#content {<br />
<span style="color: #ff0000;">display:table;</span><br />
margin:0 auto;<br />
background-color:#FFFFFF;<br />
width:965px;<br />
}</p>
<p style="text-align: center;">
<p>yes folks just put <span style="color: #ff0000;">display:table; <span style="color: #000000;">in your css.</span></span></p>
<p style="text-align: center;"><span id="more-24"></span></p>
<p>More information from <a href="http://archivist.incutio.com/viewlist/css-discuss/83996 ">http://archivist.incutio.com/viewlist/css-discuss/83996 </a></p>
<p>Firefox (and other good browsers) will calculate &#8216;height: 100%&#8217; on any<br />
container from its parent. You have forgotten to declare height on<br />
div.shadow, so div.container defaults to &#8216;height: auto&#8217;.</p>
<p>Now, if you add the following&#8230;</p>
<p>div.shadow {height: 100%; display: table; width: 810px; margin: 0 auto;<br />
border: solid 1px red;}</p>
<p>div.container {display: table;}</p>
<p>&#8230;.you&#8217;ll get an immediate, and positive, reaction from Firefox (and<br />
other good browsers). Firefox is slightly behind since (I think) it<br />
supports CSS2 for &#8216;display: table&#8217;, while Opera and Safari seems to<br />
support css2.1 for that property and expands all elements completely.<br />
Doesn&#8217;t make much of a difference in most cases.</p>
<p>The important parts are &#8216;height: 100%; display: table;&#8217; on div.shadow,<br />
and &#8216;display: table;&#8217; on div.container. I put in the rest just for<br />
appearance.</p>
<p>Note that &#8216;height: 100%&#8217; not only makes an element expand to that<br />
height, it also _limits_ it to that height. There&#8217;s where &#8216;display:<br />
table&#8217; comes in handy, since that property effectively turns &#8216;height:<br />
100%&#8217; into &#8216;min-height: 100%&#8217; so the element can keep on expanding if<br />
there&#8217;s more content.</p>
<p>IE6 will work fine with the additions above &#8211; because of its<br />
&#8216;auto-expansion&#8217; bug. Mode doesn&#8217;t matter since you have the old<br />
centering-method in there too.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi.zafre.com%2F2008%2F08%2F06%2Fdiv-height-problem-in-firefox%2F&amp;linkname=Div%20Height%20problem%20in%20Firefox.">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>swfobject</title>
		<link>http://i.zafre.com/2008/06/01/swfobject/</link>
		<comments>http://i.zafre.com/2008/06/01/swfobject/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 10:49:18 +0000</pubDate>
		<dc:creator>Riza</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://i.zafre.com/?p=5</guid>
		<description><![CDATA[

Flashobject is a small Javascript file used for embedding Adobe Flash content.
The script can detect the Flash plugin in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible.
It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong><img src="http://www.faithaca.info/images/Flash_icon.gif" alt="" width="200" height="200" /><br />
</strong></p>
<p><strong>Flashobject</strong> is a small Javascript file used for embedding Adobe Flash content.<br />
The script can detect the Flash plugin in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible.</p>
<p>It is also very search engine friendly, degrades gracefully, can be used in valid <acronym title="HyperText Markup Language">HTML</acronym> and <acronym title="Extensible HyperText Markup Language">XHTML</acronym> 1.0 documents, and is forward compatible, so it should work for years to come.</p>
<p><em><span style="color: #808080;">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
 // &lt;![CDATA[<br />
 var so = new SWFObject("sample.swf", "sotester", "100%", "100%", "9.0.115", "#000000");<br />
 so.useExpressInstall('js/expressinstall.swf');<br />
 so.addParam("scale", "noscale");<br />
 so.addParam("menu", "false");<br />
 so.addParam("allowScriptAccess", "always");<br />
 so.addParam("allowFullscreen", "true");<br />
 so.write("flashcontent");<br />
 // ]]&gt;<br />
&lt;/script&gt;</span></em></p>
<p>you can <strong>download </strong>the latest version from : <a href="http://code.google.com/p/swfobject/">http://code.google.com/p/swfobject/</a> <br />
this good script is from: <a href="http://blog.deconcept.com/swfobject/">http://blog.deconcept.com/swfobject/</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi.zafre.com%2F2008%2F06%2F01%2Fswfobject%2F&amp;linkname=swfobject">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://i.zafre.com/2008/06/01/swfobject/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PNG in IE6</title>
		<link>http://i.zafre.com/2008/05/13/png-in-ie6/</link>
		<comments>http://i.zafre.com/2008/05/13/png-in-ie6/#comments</comments>
		<pubDate>Tue, 13 May 2008 08:29:09 +0000</pubDate>
		<dc:creator>Riza</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[IE6 problem]]></category>
		<category><![CDATA[PNG Problem]]></category>

		<guid isPermaLink="false">http://i.zafre.com/?p=3</guid>
		<description><![CDATA[What is the PNG?
Portable Network Graphics (PNG) is a bitmapped image format that employs lossless data compression. PNG was created to improve upon and replace the GIF format, as an image-file format not requiring a patent license. PNG is pronounced /?p??/ both P-N-G and ping. The PNG initialism is optionally recursive, unofficially standing for “PNG&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is the PNG?</strong></p>
<p><strong>Portable Network Graphics</strong> (<strong>PNG</strong>) is a bitmapped <span class="mw-redirect">image format</span> that employs lossless data compression. PNG was created to improve upon and replace the GIF format, as an image-file format not requiring a patent license. PNG is pronounced <span class="IPA" title="Pronunciation in the International Phonetic Alphabet (IPA)">/?p??/</span> both P-N-G and ping. The PNG initialism is optionally recursive, unofficially standing for “PNG&#8217;s Not GIF”.</p>
<p>I had problem with PNG in IE6, So i research about it, And find these links:</p>
<ol>
<li><span style="color: #808080;">http://www.twinhelix.com/css/iepngfix/</span></li>
<li><span style="color: #808080;">http://www.mongus.net/pngInfo/</span></li>
<li><span style="color: #808080;">http://www.alistapart.com/stories/pngopacity/</span></li>
</ol>
<p>These are good stuff but this was a perfect one.<br />
<span style="color: #ff0000;">http://www.komodomedia.com/blog/2007/11/css-png-image-fix-for-ie/</span><br />
So i use this one, and result was ok.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi.zafre.com%2F2008%2F05%2F13%2Fpng-in-ie6%2F&amp;linkname=PNG%20in%20IE6">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://i.zafre.com/2008/05/13/png-in-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
