<?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>how to &#187; Css</title>
	<atom:link href="http://www.neteyaz.com/category/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.neteyaz.com</link>
	<description>linux and open source tips</description>
	<lastBuildDate>Mon, 23 May 2011 08:47:12 +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>div with scrollbar</title>
		<link>http://www.neteyaz.com/div-with-scrollbar</link>
		<comments>http://www.neteyaz.com/div-with-scrollbar#comments</comments>
		<pubDate>Mon, 16 Nov 2009 19:28:58 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[scrollbar]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=81</guid>
		<description><![CDATA[how to add a scroll to a div with css?


.myscrolldiv {
text-align: center;
list-style-type: disc;
overflow: scroll;
width:230px;
height:650px;
}

]]></description>
			<content:encoded><![CDATA[<p><strong>how to add a scroll to a div with css?</strong><br />
<span id="more-81"></span></p>
<pre>
.myscrolldiv {
text-align: center;
list-style-type: disc;
overflow: scroll;
width:230px;
height:650px;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/div-with-scrollbar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make a Tag Cloud?</title>
		<link>http://www.neteyaz.com/how-to-make-a-tag-cloud</link>
		<comments>http://www.neteyaz.com/how-to-make-a-tag-cloud#comments</comments>
		<pubDate>Mon, 16 Nov 2009 13:40:21 +0000</pubDate>
		<dc:creator>TaZ</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Tag Cloud]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=64</guid>
		<description><![CDATA[In this tutorial i am going to show you how to create a basic tag cloud using php.I am going to write some css code to show most used tags bigger than others.

.tagcloud {float:left;width:314px; height:170px;border:8px solid #72C6FF; margin-top:10px;padding:0;}
.tagcloud ol {margin: 5px 0 5px 0px; padding: 0px 0 0px 0;}
.tagcloud ol li {display: inline;}
.tagcloud ol li [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial i am going to show you how to create a basic tag cloud using php.I am going to write some <strong>css</strong> code to show most used tags bigger than others.<br />
<span id="more-64"></span></p>
<pre>.tagcloud {float:left;width:314px; height:170px;border:8px solid #72C6FF; margin-top:10px;padding:0;}
.tagcloud ol {margin: 5px 0 5px 0px; padding: 0px 0 0px 0;}
.tagcloud ol li {display: inline;}
.tagcloud ol li a {padding: 0 3px 0 0px; margin-right: 7px; line-height: 24px;}
.tagcloud ol li a:link, .tagcloud ol li a:visited {text-decoration: none;color: blue;}
.tagcloud ol li a:hover,.tagcloud ol li a:visited:hover {background: #E6E6E9;}
.tagcloud ol li a:link span.grup, .tagcloud ol li a:visited span.grup {padding-left: 15px;}
.tagcloud ol li a.l0:hover, .tagcloud ol li a.l0 {font-size: 13px;}
.tagcloud ol li a.l1:hover, .tagcloud ol li a.l1 {font-size: 14px;}
.tagcloud ol li a.l2:hover, .tagcloud ol li a.l2 {font-size: 16px;}
.tagcloud ol li a.l3:hover, .tagcloud ol li a.l3 {font-size: 18px;}
.tagcloud ol li a.l4:hover, .tagcloud ol li a.l4 {font-size: 19px; letter-spacing: -1px;}
.tagcloud ol li a.l5:hover, .tagcloud ol li a.l5 {font-size: 20px; letter-spacing: -1px;}
.tagcloud ol li a.l6:hover, .tagcloud ol li a.l6 {font-size: 21px; letter-spacing: -1px;}
.tagcloud ol li a.l7:hover, .tagcloud ol li a.l7 {font-size: 22px; letter-spacing: -1px;}
.tagcloud ol li a.l8:hover, .tagcloud ol li a.l8 {font-size: 22px; letter-spacing: -1px;}
.tagcloud ol li a.l9:hover, .tagcloud ol li a.l9 {font-size: 22px; letter-spacing: -1px;}</pre>
<p>Save this code as &#8220;style.css&#8221;. We have 10 different size to show tags which are used mostly. Css codes are these, however, the main problem is how to use these codes in php.The way is&#8230;</p>
<pre>&lt;div class="tagcloud"&gt;
 &lt;ol&gt;
  &lt;?php
   $max=??//max used tag
   $min=??//min used tag
   $denominator=((int)(($max-$min)/10));
   $sql="SELECT * FROM category ORDER BY RAND() LIMIT 26";//tags
   $result=mysql_query($sql);
   while ($row=mysql_fetch_assoc($result)){
    if ($denominator==0){
      $level=0;
    }else{
     $sql="SELECT  COUNT(relation_category_id) AS count_of FROM relation WHERE relation_category_id=".$row['category_id'];
     $query=mysql_query($sql);
     $row2=mysql_fetch_row($query);
     $count_of=$row2[0];
     $level=(int)($count_of/$denominator);
    }
    if ($level&gt;9){$level=9;}
    ?&gt;&lt;li&gt;&lt;a href='index.php?q=&lt;?=$row['category_id'] ?&gt;' class='l&lt;?=$level ?&gt;' &gt;&lt;?=$row['category_name']?&gt;&lt;/a&gt;&lt;/li&gt;
 &lt;?}?&gt;
&lt;/ol&gt;
&lt;/div&gt;</pre>
<p>We find the max used tags and min used tags after that we made  <strong> $denominator=((int)(($max-$min)/10));</strong> operation to find denominator.Than we get the tags with some sql query and print out them. Is it simple , he? <img src='http://www.neteyaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/how-to-make-a-tag-cloud/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Hide Broken Images</title>
		<link>http://www.neteyaz.com/how-to-hide-broken-images</link>
		<comments>http://www.neteyaz.com/how-to-hide-broken-images#comments</comments>
		<pubDate>Sun, 15 Nov 2009 20:17:57 +0000</pubDate>
		<dc:creator>TaZ</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[broken images]]></category>
		<category><![CDATA[hide broken images]]></category>
		<category><![CDATA[onerror]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=36</guid>
		<description><![CDATA[This is a simple article about ugly error on pages about broken image files. It has a very simple solution with css.


&#60;img
 src=&#8221;broken.png&#8221; alt=&#8221;"
/&#62;

If you use onerror=&#8221;this.style.display=&#8217;none&#8217;&#8221; , you won&#8217;t see any broken image.
]]></description>
			<content:encoded><![CDATA[<p>This is a simple article about ugly error on pages about broken image files. It has a very simple solution with css.</p>
<p><span id="more-36"></span></p>
<ol>
<li>&lt;img</li>
<li> src=&#8221;broken.png&#8221; alt=&#8221;"</li>
<li>/&gt;</li>
</ol>
<p>If you use <strong>onerror=&#8221;this.style.display=&#8217;none&#8217;&#8221;</strong> , you won&#8217;t see any broken image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/how-to-hide-broken-images/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

