<?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>Bin-Blog &#187; links</title>
	<atom:link href="http://www.bin-co.com/blog/tag/links/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Iconify Links with CSS</title>
		<link>http://www.bin-co.com/blog/2007/06/iconify-links-with-css/</link>
		<comments>http://www.bin-co.com/blog/2007/06/iconify-links-with-css/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 18:12:49 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[(X)HTML]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[nexty]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/2007/06/iconify-links-with-css/</guid>
		<description><![CDATA[Using icons is a must for all Web 2.0 apps. I have used this principle liberally in Nexty. When I was creating Nexty, I learned a simple trick that made using icons with CSS much easier. Go to Nexty to see the icons 3 Types of Icons I used 3 different classes for showing icons. [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">Using icons is a must for all Web 2.0 apps. I have used this principle liberally in <a href="http://nexty.sourceforge.net/">Nexty</a>. <a href="http://www.bin-co.com/blog/2007/05/what-i-learned-from-nexty/">When I was creating Nexty, I learned</a> a simple trick that made using icons with CSS much easier.</p>
<p>Go to <a href="http://www.bin-co.com/php/programs/apps/nexty/demo/">Nexty</a> to see the icons</p>
<p><img src='http://www.bin-co.com/blog/wp-content/uploads/2007/06/icons.png' alt='Iconification of Links in Nexty' /></p>
<h2>3 Types of Icons</h2>
<p>I used 3 different classes for showing icons. They are..</p>
<h3>icon</h3>
<p>This class removes the text of the link and put the icon in its place. The icon is clickable.</p>
<p>You can see this technique used in the <a href="http://www.bin-co.com/php/programs/apps/nexty/demo/projects/">Projects page</a>. See that &#8216;Edit&#8217;(Pencil) and &#8216;Delete&#8217; icons? They use this class.</p>
<h4>XHTML code</h4>
<pre><code class="html">&lt;a class="icon edit" href="edit.php?project=6"&gt;Rename&lt;a&gt;</code></pre>
<h4>CSS Code</h4>
<pre><code class="css">.icon {
	font-size:0px; /*Hides the text*/
	padding:6px 8px;
}
.edit {
	background:url(edit.png) no-repeat left center;
}</code></pre>
<h3>with-icon</h3>
<p>This class shows the icon left of the link text. Both the icon and the text are clickable.</p>
<p>The &#8216;Create new task&#8217; link in the <a href="http://www.bin-co.com/php/programs/apps/nexty/demo/">home page</a> is an example of this.</p>
<h4>XHTML code</h4>
<pre><code class="html">&lt;a class="with-icon tasks" href="tasks/new.php"&gt;Create New Task...&lt;/a&gt;</code></pre>
<h4>CSS Code</h4>
<pre><code class="css">
.with-icon {
	padding-left:18px;
}
.tasks {
	background:url(tasks.png) no-repeat left center;
}
</code></pre>
<h3>list-with-icon</h3>
<p>This will insert the icon in every item for the given list.</p>
<p>The drop down menus &#8211; Sections, Projects and Contexts are created using this technique.</p>
<h4>XHTML code</h4>
<pre><code class="html">&lt;ul class="menu-with-icon projects"&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<h4>CSS Code</h4>
<pre><code class="css">
.list-with-icon li,.list-with-icon dt {
	padding-left:18px;
}
.projects li {
	background:url(projects.png) no-repeat left center;
}
</code></pre>
<h2>Icon Size</h2>
<p>My icons were 16&#215;16 pixels &#8211; if you are using icons with a different size, you will have to change the amount accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2007/06/iconify-links-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

