<?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>Web Development Blog &#187; xHTML</title>
	<atom:link href="http://eisabainyo.net/weblog/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://eisabainyo.net/weblog</link>
	<description>Web Development, Web Design, Web Applications, Web 2.0, AJAX, WordPress Themes, Search Engine Optimisation, Latest Technologies and more..</description>
	<lastBuildDate>Tue, 22 May 2012 08:47:05 +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>How to code an HTML Email Newsletter</title>
		<link>http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/</link>
		<comments>http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/#comments</comments>
		<pubDate>Mon, 31 May 2010 06:19:58 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=1490</guid>
		<description><![CDATA[In this step-by-step tutorial, I&#8217;m going to show you exactly how to code an HTML email; be it an HTML Email Signature or HTML Email Newsletter. 1. Changing the background color &#60;table width=&#34;100%&#34; border=&#34;0&#34; cellspacing=&#34;0&#34; cellpadding=&#34;0&#34; bgcolor=&#34;#333333&#34;&#62; &#60;tr&#62; &#60;td&#62; &#60;/td&#62; &#60;/tr&#62; &#60;/table&#62; 2. Setting a fixed width and background color for the content area &#60;table [...]]]></description>
			<content:encoded><![CDATA[<p>In this step-by-step tutorial, I&#8217;m going to show you exactly how to code an HTML email; be it an HTML Email Signature or HTML Email Newsletter.  </p>
<p><a href="http://eisabainyo.net/view/streamsend" target="_blank"><img src="http://www.awltovhc.com/image-3838536-10786843" width="300" height="100" alt="StreamSend.com" border="0"/></a></p>
<p><strong>1.  Changing the background color</strong></p>
<pre>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#333333&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;

	&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><strong>2. Setting a fixed width and background color for the content area</strong></p>
<pre>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#333333&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;
		&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td&gt;

			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><strong>3.  Changing the font size, style and color of the content area</strong></p>
<pre>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#333333&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;
		&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td&gt;

			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><strong>4. Setting a different font, color and style for headings</strong></p>
<pre>&lt;span style=&quot;font-size: 14px; font-weight: bold; color: #ed0000;
font-family:Arial, Helvetica, sans-serif;&quot;&gt;Latest News from the Web Development Blog&lt;/span&gt;</pre>
<p><strong>5. Inserting a line between two blocks of text</strong></p>
<pre>
	&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td&gt;
				First block of text.
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style=&quot;border-top: 1px solid #66666;&quot;&gt;
				Second block of text.
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
</pre>
<p><strong>6. Inserting and floating an image to the left</strong></p>
<pre>
	&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td width=&quot;150&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;
				&lt;img src=&quot;http://full.path.to.the.image/image.jpg&quot; width=&quot;120&quot; height=&quot;100&quot; alt=&quot;My image&quot; /&gt;
			&lt;/td&gt;
			&lt;td width=&quot;450&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;
				Text next to the image
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot;&gt;
				Copyright text
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
</pre>
<p><strong>7. Aligning text to right (or left or center)</strong></p>
<pre>
	&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td&gt;
				&lt;div&gt;Some text goes here&lt;/div&gt;
				&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;#&quot;&gt;Read more&lt;/a&gt;&lt;/div&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
</pre>
<p><strong>8. Changing a link color </strong></p>
<pre>&lt;a href=&quot;#&quot; style=&quot;color: #00ccff;
text-decoration: none;&quot;&gt;Read more&lt;/a&gt;</pre>
<p><strong>9. Adding a border around the content area</strong></p>
<pre>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#333333&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;
		&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px; border: 1px solid #00ccff; border-collapse: collapse;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td&gt;

			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><strong>10. Opening a link in a new window</strong></p>
<pre>&lt;a href=&quot;http://www.google.com&quot; target=&quot;_blank&quot;
style=&quot;color: #00ccff; text-decoration: none;&quot;&gt;Go to Google&lt;/a&gt;</pre>
<p><strong>Putting it altogether</strong></p>
<p><img src="http://eisabainyo.net/weblog/wp-content/uploads/2010/05/sample-newsletter-300x280.gif" alt="" title="Sample Email Newsletter" width="300" height="280" class="alignnone size-medium wp-image-1496" /></p>
<pre>
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;10&quot; bgcolor=&quot;#cccccc&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;
		&lt;table width=&quot;600&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;10&quot; cellspacing=&quot;5&quot; style=&quot;font-family:Arial, Helvetica, sans-serif; color: #5b656b; font-size: 12px; border: 1px solid #999999; border-collapse: collapse;&quot; bgcolor=&quot;#ffffff&quot;&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot; height=&quot;70&quot; bgcolor=&quot;#000033&quot;&gt;
				&lt;span style=&quot;font-size: 14px; font-weight: bold; color: #ff6600; font-family:Arial, Helvetica, sans-serif;&quot;&gt;Latest News from the Web Development Blog&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot; height=&quot;10&quot; bgcolor=&quot;#ff6600&quot;&gt;&lt;/td&gt;
		&lt;tr&gt;
		&lt;tr&gt;
			&lt;td width=&quot;150&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;
				&lt;img src=&quot;http://eisabainyo.net/weblog/wp-content/uploads/2010/05/sexy-web-design.jpg&quot; width=&quot;250&quot; height=&quot;326&quot; alt=&quot;Sexy Web Design Book Cover&quot; /&gt;
			&lt;/td&gt;
			&lt;td width=&quot;450&quot; align=&quot;left&quot; valign=&quot;top&quot;&gt;
				&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tincidunt nisl et felis sodales faucibus. In hac habitasse platea dictumst. Sed tincidunt egestas velit mollis faucibus. Aliquam feugiat, neque nec porta accumsan, odio nulla laoreet risus, ut vestibulum lacus velit eget mi. Aliquam vehicula magna sed leo lobortis et luctus magna venenatis. Nunc et massa ipsum. In tristique, elit hendrerit tincidunt consectetur, diam purus tempor ante, eget scelerisque velit est vitae lorem. Nullam vulputate blandit dui et tempor. Curabitur quam lectus, suscipit non placerat a, consectetur vel velit. &lt;/p&gt;
				&lt;p&gt;Vestibulum egestas ipsum quis elit pulvinar ullamcorper. Vestibulum ac neque sed neque consequat ornare eu et justo. Phasellus pulvinar vestibulum nisl, ut tempus dolor commodo at. Morbi ultricies nisl vel massa accumsan tempor. Donec quam nibh, euismod vitae vestibulum ac, ullamcorper non eros. Integer quis sapien ac enim rhoncus auctor. Nulla facilisi. Vivamus et varius massa. Integer aliquam ultricies risus nec vulputate. Donec porta viverra magna, a suscipit arcu porta non. &lt;/p&gt;
				&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;#&quot; style=&quot;color: #ff6600; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Read more&lt;/a&gt;&lt;/div&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot;&gt;
				&lt;p&gt;Praesent ut purus sit amet elit tincidunt laoreet a sed mauris. Integer a lacinia augue. Donec hendrerit sapien et lorem tincidunt a luctus purus vehicula. Cras magna diam, auctor sit amet pretium in, pretium a odio. Proin sed laoreet lorem. Mauris tortor diam, tempus sit amet lacinia in, egestas eu lectus. Vivamus aliquet hendrerit tellus sit amet pretium. Praesent dictum libero pretium magna pretium congue. Pellentesque consequat est a tortor tincidunt placerat in a ante. Sed non elit enim, vitae scelerisque ipsum. Integer fringilla, massa in ultrices bibendum, orci neque luctus arcu, in pulvinar elit risus eu nunc. Etiam dignissim malesuada consequat. Donec eget magna risus, eu vehicula ante. Quisque adipiscing placerat tincidunt. Aliquam ultrices vehicula velit, vel dignissim sem feugiat malesuada. Donec magna nisi, pretium at ullamcorper ultrices, sodales eu odio. Nulla facilisi. Curabitur hendrerit dictum rhoncus. Praesent bibendum dapibus ligula, ut placerat dolor vulputate vel. &lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot; bgcolor=&quot;#cccccc&quot;&gt;
				&lt;span style=&quot;font-size: 10px; font-weight: bold; color: #666666; font-family:Arial, Helvetica, sans-serif;&quot;&gt;Copyright 2010 All Rights Reserved.&lt;/span&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;/td&gt;
   &lt;/tr&gt;
&lt;/table&gt;
</pre>
<p><strong>Email Newsletter Templates</strong></p>
<p>If you are looking for professional email newsletter designs, <a href="http://themeforest.net/?ref=eisabai">ThemeForest</a> is the best place to buy email newsletter templates because each template package comes with a complete HTML code and layered PSD file (and sometimes multiple color variations).  Our favourites are:</p>
<p><a href="http://themeforest.net/item/inewsletter/82750?ref=eisabai">iNewsletter<br />
<img src="http://eisabainyo.net/weblog/wp-content/uploads/2010/05/inewsletter.jpg" alt="" title="iNewsletter" width="450" class="alignnone size-full wp-image-1498" /></a></p>
<p><a href="http://themeforest.net/item/platnum-email-template-6-layouts-8-colors/92281?ref=eisabai">Platnum<br />
<img src="http://eisabainyo.net/weblog/wp-content/uploads/2010/05/platnum.jpg" alt="" title="Platnum" width="450" class="alignnone size-full wp-image-1499" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to style a Submit button in CSS &#8211; Example 2</title>
		<link>http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/</link>
		<comments>http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 01:31:06 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=1238</guid>
		<description><![CDATA[web 2.0 style call-to-action buttons can be purchased in psd format from graphic river Since writing How to style a Submit button in CSS a few months ago, I have found an alternative way to achieve the same result. In this example, we will be using &#60;button&#62; tag instead of &#60;input&#62; tag. The &#60;button&#62; tag [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://eisabainyo.net/weblog/wp-content/uploads/2010/03/contact-us-today.gif" alt="" title="Contact us today!" width="247" height="86" class="alignnone size-full wp-image-1241" /><br />
<small><a href="http://graphicriver.net/item/premium-web-20-call-to-action-buttons/80703?ref=eisabai" target="_blank">web 2.0 style call-to-action buttons</a> can be purchased in psd format from graphic river</small></p>
<p>Since writing <a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/">How to style a Submit button in CSS</a> a few months ago, I have found an alternative way to achieve the same result.   In this example, we will be using <code>&lt;button&gt;</code> tag instead of <code>&lt;input&gt;</code> tag.    The <code>&lt;button&gt;</code> tag will still submit the form that it belongs to when clicked because the type of the button is set as <code>submit</code>.  </p>
<p><strong>HTML</strong></p>
<pre>&lt;button id=&quot;button&quot; name=&quot;button&quot; type=&quot;submit&quot;&gt;
&lt;span&gt;Contact us today!&lt;/span&gt;&lt;/button&gt;</pre>
<p><strong>CSS</strong></p>
<pre>#button {
	background: transparent url(contact.gif) 0 0 no-repeat;
	border: none;
	cursor: pointer;
	width: 180px;
	height: 50px;
}

#button span {
	display: none;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Read more using jQuery live event</title>
		<link>http://eisabainyo.net/weblog/2009/09/14/read-more-using-jquery-live-event/</link>
		<comments>http://eisabainyo.net/weblog/2009/09/14/read-more-using-jquery-live-event/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 01:53:31 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=740</guid>
		<description><![CDATA[The main purpose of this code is to have &#8220;Read more&#8221; for a long block of text (eg: comments) without having to separate the text into two div blocks and then use toggle to show/hide the 2nd block. This code simply uses CSS overflow:hidden property to hide long block of text. jQuery live event is [...]]]></description>
			<content:encoded><![CDATA[<p>The main purpose of this code is to have &#8220;Read more&#8221; for a long block of text (eg: comments) without having to separate the text into two div blocks and then use toggle to show/hide the 2nd block.  This code simply uses CSS <code>overflow:hidden</code> property to hide long block of text.  jQuery live event is used to ensure it works for content loaded using AJAX.  </p>
<p><strong>CSS</strong></p>
<pre>
#comments .expandable .comment-body {
	height: 50px;
        overflow: hidden;
}</pre>
<p><strong>Javascript</strong></p>
<pre>
$(&quot;#comments .comment-more a&quot;).live(&quot;click&quot;, function(){
	if ($(this).text() == 'more') {
		$(this).parent().parent().removeClass(&quot;expandable&quot;);
		$(this).text(&quot;less&quot;);
	} else {
		$(this).parent().parent().addClass(&quot;expandable&quot;);
		$(this).text(&quot;more&quot;);
	}
	return false;
});</pre>
<p><strong>HTML</strong></p>
<pre>&lt;div id=&quot;comments&quot;&gt;
	&lt;div class=&quot;comment-content expandable&quot;&gt;
		&lt;div class=&quot;comment-body&quot;&gt;
		&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis cursus adipiscing. Donec risus leo, venenatis adipiscing euismod eget, ultricies vitae nunc. Curabitur fermentum tortor vitae nisl fermentum non scelerisque erat posuere. Sed auctor tempor venenatis. Morbi vel urna turpis, adipiscing molestie nisl. Curabitur ut lorem id neque mollis fringilla. Phasellus varius viverra suscipit. Proin eleifend quam in diam dictum suscipit. Praesent eleifend fringilla turpis sit amet commodo. In ullamcorper ligula non augue bibendum ultricies scelerisque tortor congue. Aenean nulla lectus, tincidunt egestas cursus sit amet, tristique non libero. Duis facilisis blandit nisi, eget cursus turpis tristique non. Fusce sodales dolor vel ligula rutrum venenatis. Cras molestie vulputate urna at iaculis. Mauris consequat accumsan mi, non facilisis enim porttitor gravida.&lt;/p&gt;
		&lt;p&gt;Suspendisse et purus a tortor aliquet vestibulum. Sed ullamcorper euismod interdum. Aenean gravida, metus ac imperdiet venenatis, neque ligula viverra urna, a pellentesque elit mi id ligula. In suscipit nunc eget magna bibendum tempor. Nunc ac mauris ut risus posuere accumsan. Nulla dictum semper justo, quis adipiscing sem consectetur quis. Donec felis arcu, convallis pretium consectetur at, semper ullamcorper urna. Proin elit nisi, vehicula eget pretium ac, faucibus vitae justo. Praesent quis arcu eget massa interdum ullamcorper in nec mauris. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent orci nisl, mollis et egestas ut, suscipit et orci. Morbi in justo sit amet ligula facilisis interdum ac id ante. Nam sit amet metus eget augue tristique interdum vitae in metus. Vestibulum tristique vestibulum lorem, eget pharetra ante aliquet eget. Donec fermentum adipiscing sagittis. Quisque interdum, augue non vulputate rutrum, sem tortor facilisis diam, in tincidunt nisi tellus ut eros. &lt;/p&gt;
		&lt;/div&gt;
		&lt;span class=&quot;comment-more&quot;&gt;&lt;a href=&quot;#&quot;&gt;more&lt;/a&gt;&lt;/span&gt;
	&lt;/div&gt;

	&lt;div class=&quot;comment-content expandable&quot;&gt;
		&lt;div class=&quot;comment-body&quot;&gt;
		&lt;p&gt;Vivamus viverra arcu non nibh sollicitudin consectetur. Vivamus sodales erat a tellus semper in feugiat eros pharetra. Aenean vel magna magna, scelerisque molestie risus. Fusce lobortis euismod justo, sed gravida neque porta nec. Aenean risus metus, accumsan et mattis et, semper non erat. Fusce velit enim, viverra a pulvinar nec, viverra vel erat. Praesent sed mi quam, vel dignissim nunc. Nullam accumsan quam ut eros congue eget accumsan arcu bibendum. Nam congue egestas fringilla. Aliquam felis mi, volutpat nec tempor eu, hendrerit quis lorem. Pellentesque pretium metus quis sapien luctus venenatis vitae pretium dolor. Fusce ac tellus a tellus posuere suscipit a quis ante. Quisque ut sem eget risus consequat ornare.&lt;/p&gt;
		&lt;p&gt;Nunc id risus risus, sed pellentesque nisi. Donec pulvinar nisl sit amet eros venenatis ut dictum odio pretium. Nulla hendrerit ligula a metus rutrum sed feugiat libero mattis. Nam id mi ac leo iaculis volutpat. Maecenas nec enim ut mauris convallis auctor in sed purus. Nam porta magna vitae nisl tempus in eleifend felis viverra.&lt;/p&gt;
		&lt;/div&gt;
		&lt;span class=&quot;comment-more&quot;&gt;&lt;a href=&quot;#&quot;&gt;more&lt;/a&gt;&lt;/span&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre>
<h3>Recommended Books on jQuery</h3>
<div class="book"><a href="http://www.amazon.com/gp/product/0596159773?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0596159773"><img src="http://eisabainyo.net/weblog/wp-content/uploads/2009/09/jquery-cookbook.jpg" alt="" title="jQuery Cookbook: Solutions &amp; Examples for jQuery Developers" width="90" height="118" class="alignnone size-full wp-image-1128" /><span>jQuery Cookbook: Solutions &#038; Examples for jQuery Developers</span></a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0596159773" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</div>
<div class="book"><a href="http://www.amazon.com/gp/product/1933988355?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=1933988355"><img src="http://eisabainyo.net/weblog/wp-content/uploads/2009/09/jquery-in-action.jpg" alt="" title="jQuery in Action" width="90" height="111" class="alignnone size-full wp-image-1127" /><span>jQuery in Action</span></a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=1933988355" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</div>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/09/14/read-more-using-jquery-live-event/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Framebar (like diggbar) example in html and css with no javascript</title>
		<link>http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/</link>
		<comments>http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 03:26:56 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=733</guid>
		<description><![CDATA[This example code shows you how you can have a top branding bar similiar to diggbar in just a few lines of html and css. &#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.01 Frameset//EN&#34;&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;framebar example by Web Development Blog&#60;/title&#62; &#60;meta http-equiv=&#34;content-type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;style type=&#34;text/css&#34;&#62; body { margin: 0; padding: 40px 0 0 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://eisabainyo.net/weblog/wp-content/uploads/2009/08/framebar.jpg" alt="framebar" title="framebar" width="400" height="324" class="alignnone size-full wp-image-735" /></p>
<p>This example code shows you how you can have a top branding bar similiar to diggbar in just a few lines of html and css.  </p>
<pre>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Frameset//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;framebar example by Web Development Blog&lt;/title&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
body {
    margin: 0;
    padding: 40px 0 0 0;
    overflow: hidden;
    font: 83%/1.4 Arial, Helvetica, Sans-Serif;
}
#bar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-width: 900px;
    height: 30px;
    padding: 5px 0;
    line-height: 1;
    background: #333;
    color: #fff;
    text-size: 1.2em;
}
#bar a {
    padding: 0 5px;
    color: #fff;
}
#frame {
    width: 100%;
    height: 100%;
    z-index: 10;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!-- BEGIN: bar --&gt;
&lt;div id=&quot;bar&quot;&gt;
&lt;a href=&quot;http://eisabainyo.net/weblog/&quot; title=&quot;Web Development Blog&quot;&gt;Web Development Blog&lt;/a&gt;
&lt;/div&gt;
&lt;!-- END: bar --&gt;
&lt;iframe scrolling=&quot;auto&quot; id=&quot;frame&quot; src=&quot;http://eisabainyo.net/weblog/&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Change the arrow into a hand when hovering over &#8216;Submit&#8217; button</title>
		<link>http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/</link>
		<comments>http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 05:59:29 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=697</guid>
		<description><![CDATA[HTML &#60;input type=&#34;submit&#34; id=&#34;submit&#34; value=&#34;Search&#34; /&#62; CSS #submit { cursor: pointer; }]]></description>
			<content:encoded><![CDATA[<p><strong>HTML</strong></p>
<pre>
  &lt;input type=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Search&quot; /&gt;
</pre>
<p><strong>CSS</strong></p>
<pre>
#submit {
  cursor: pointer;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to display a different header image for different pages in WordPress</title>
		<link>http://eisabainyo.net/weblog/2009/06/25/how-to-display-a-different-header-image-for-different-pages-in-wordpress/</link>
		<comments>http://eisabainyo.net/weblog/2009/06/25/how-to-display-a-different-header-image-for-different-pages-in-wordpress/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 12:06:05 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=682</guid>
		<description><![CDATA[In header.php file of my WordPress theme, I have the following code to display a different header image for different pages. &#60;?php if (is_page('about')) { $image = 'image_about.jpg'; } else if (is_page('projects')) { $image = 'image_projects.jpg'; } else if (is_page('services')) { $image = 'image_services.jpg'; } else if (is_page('contact')) { $image = 'image_contact.jpg'; } else { [...]]]></description>
			<content:encoded><![CDATA[<p>In header.php file of my WordPress theme, I have the following code to display a different header image for different pages.  </p>
<pre>
&lt;?php
  if (is_page('about')) {
      $image = 'image_about.jpg';
  } else if (is_page('projects')) {
      $image = 'image_projects.jpg';
  } else if (is_page('services')) {
      $image = 'image_services.jpg';
  } else if (is_page('contact')) {
      $image = 'image_contact.jpg';
  } else {
      $image = 'image_default.jpg';
  }
?&gt;
</pre>
<pre>&lt;div id=&quot;header&quot;&gt;
&lt;img src=&quot;&lt;?php echo bloginfo('template_url'); ?&gt;
/images/&lt;?php echo $image;?&gt;&quot;
alt=&quot;&lt;?php bloginfo('name'); ?&gt;&quot; /&gt;
&lt;/div&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/06/25/how-to-display-a-different-header-image-for-different-pages-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Highlight the current page link in WordPress</title>
		<link>http://eisabainyo.net/weblog/2009/05/26/highlight-the-current-page-link-in-wordpress/</link>
		<comments>http://eisabainyo.net/weblog/2009/05/26/highlight-the-current-page-link-in-wordpress/#comments</comments>
		<pubDate>Tue, 26 May 2009 03:00:42 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=627</guid>
		<description><![CDATA[If you are hard-coding your navigation menu in WordPress rather than using wp_list_pages() template tag, you will need to add a class manually in order to highlight the current page it is on. &#60;li&#60;?php if (is_page('gallery')) : echo ' class=&#34;current_page_item&#34;'; endif; ?&#62;&#62;&#60;a href=&#34;gallery/&#34;&#62;Gallery&#60;/a&#62;&#60;/li&#62; Note: wp_list_pages() template tag automatically add current_page_item class to the &#60;li&#62; element [...]]]></description>
			<content:encoded><![CDATA[<p>If you are hard-coding your navigation menu in WordPress rather than using <code>wp_list_pages()</code> template tag, you will need to add a class manually in order to highlight the current page it is on.  </p>
<p><code>&lt;li&lt;?php if (is_page('gallery')) : echo ' class=&quot;current_page_item&quot;'; endif; ?&gt;&gt;&lt;a href=&quot;gallery/&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;</code></p>
<p>Note: <code>wp_list_pages()</code> template tag automatically add <code>current_page_item</code> class to the <code>&lt;li&gt;</code> element for the currently viewed page.</p>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/05/26/highlight-the-current-page-link-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fieldset and Legend bug in IE8</title>
		<link>http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/</link>
		<comments>http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/#comments</comments>
		<pubDate>Tue, 19 May 2009 03:03:34 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=619</guid>
		<description><![CDATA[Problem in IE8: The upper half of the &#60;fieldset&#62; border goes missing. This problem has been discussed here and shown here. HTML: &#60;form action=&#34;login.php&#34; method=&#34;post&#34; id=&#34;login&#34;&#62; &#60;fieldset&#62; &#60;legend&#62;Login&#60;/legend&#62; &#60;label for=&#34;username&#34; class=&#34;label&#34;&#62;Username&#60;/label&#62; &#60;input type=&#34;text&#34; name=&#34;username&#34; id=&#34;username&#34;/&#62; &#60;label for=&#34;password&#34; class=&#34;label&#34;&#62;Password&#60;/label&#62; &#60;input type=&#34;password&#34; name=&#34;password&#34; id=&#34;password&#34; /&#62; &#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Login&#34; /&#62; &#60;/fieldset&#62; &#60;/form&#62; CSS: fieldset { border: 1px [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem in IE8:</strong></p>
<p>The upper half of the &lt;fieldset&gt; border goes missing.   This problem has been discussed <a href="http://teddyzetterlund.com/2009/04/16/internet-explorer-8-fieldset-and-legend-bugs/">here</a> and shown <a href="http://flowersapp.youtubevideobox.com/ie8_fieldset_bug.html">here</a>. </p>
<p><strong>HTML:</strong></p>
<pre>
&lt;form action=&quot;login.php&quot; method=&quot;post&quot; id=&quot;login&quot;&gt;
  &lt;fieldset&gt;
    &lt;legend&gt;Login&lt;/legend&gt;
    &lt;label for=&quot;username&quot; class=&quot;label&quot;&gt;Username&lt;/label&gt;
    &lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot;/&gt;
    &lt;label for=&quot;password&quot; class=&quot;label&quot;&gt;Password&lt;/label&gt;
    &lt;input type=&quot;password&quot; name=&quot;password&quot; id=&quot;password&quot; /&gt;
    &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Login&quot; /&gt;
  &lt;/fieldset&gt;
&lt;/form&gt;
</pre>
<p><strong>CSS:</strong></p>
<pre>
fieldset {
	border: 1px solid #333;
}

legend {
	display: none;
}
</pre>
<p><strong>The workaround:</strong></p>
<p>It looks like the problem occurs only when you set the &lt;legend&gt; to display: none in CSS.   To solve this, we will need to add a span element inside the legend and set it to display: none and remove display: none from legend.   </p>
<p><strong>Updated HTML:</strong></p>
<pre>
    &lt;legend&gt;&lt;span&gt;Login&lt;span&gt;&lt;/legend&gt;
</pre>
<p><strong>Updated CSS:</strong></p>
<pre>legend {
}

legend span {
	display: none;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Open link in a new window using jQuery</title>
		<link>http://eisabainyo.net/weblog/2009/04/28/open-link-in-a-new-window-using-jquery/</link>
		<comments>http://eisabainyo.net/weblog/2009/04/28/open-link-in-a-new-window-using-jquery/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 01:38:55 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=585</guid>
		<description><![CDATA[HTML: &#60;a href=&#34;http://www.google.com&#34; rel=&#34;external&#34;&#62;Google&#60;/a&#62; Javascript: $(document).ready(function() { $(&#34;a[rel=external]&#34;).attr('target', '_blank'); }); Or $(document).ready(function() { $('a[rel=&#34;external&#34;]').click( function() { window.open( $(this).attr('href') ); return false; }); });]]></description>
			<content:encoded><![CDATA[<p><strong>HTML:</strong></p>
<pre>&lt;a href=&quot;http://www.google.com&quot; rel=&quot;external&quot;&gt;Google&lt;/a&gt;</pre>
<p><strong>Javascript:</strong></p>
<pre>$(document).ready(function() {
    $(&quot;a[rel=external]&quot;).attr('target', '_blank');
});</pre>
<p>Or </p>
<pre>$(document).ready(function() {
    $('a[rel=&quot;external&quot;]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/04/28/open-link-in-a-new-window-using-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>sIFR vs FLIR  &#8211; Font Replacement Techniques</title>
		<link>http://eisabainyo.net/weblog/2009/04/27/sifr-vs-flir-font-replacement-techniques/</link>
		<comments>http://eisabainyo.net/weblog/2009/04/27/sifr-vs-flir-font-replacement-techniques/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 01:20:42 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=579</guid>
		<description><![CDATA[sIFR sIFR stands for Scalable Inman Flash Replacement and it is an open source JavaScript and Adobe Flash dynamic web fonts implementation, enabling the replacement of text elements on HTML web pages with Flash equivalents. Pros Looks nice Does not require a server side language Text created with sIFR can be copied/selected Graceful degradation (If [...]]]></description>
			<content:encoded><![CDATA[<h3>sIFR</h3>
<p>sIFR stands for Scalable Inman Flash Replacement and it is an open source JavaScript and Adobe Flash dynamic web fonts implementation, enabling the replacement of text elements on HTML web pages with Flash equivalents. </p>
<p><strong>Pros</strong></p>
<ul>
<li>Looks nice</li>
<li>Does not require a server side language </li>
<li>Text created with sIFR can be copied/selected</li>
<li>Graceful degradation (If flash is not installed, it will just display normal text)</li>
<li>Works well with screen readers</li>
</ul>
<p><strong>Cons</strong></p>
<ul>
<li>Not easy to configure</li>
<li>Not easy to make font adjustments</li>
<li>Requires Flash installed on client&#8217;s browser</li>
<li>Can be slow if there are too many sIFR elements on a single page</li>
</ul>
<p><a href="http://wiki.novemberborn.net/sifr3/">Website</a> | <a href="http://dev.novemberborn.net/sifr3/beta2/demo/">Demo</a></p>
<h3>FLIR</h3>
<p>FLIR stands for Facelift Image Replacement.  FLIR uses PHP and Javascript to generate text into images with your desired font and replaces them on the fly.  </p>
<p><strong>Pros</strong></p>
<ul>
<li>Looks nice</li>
<li>Relatively easy to configure</li>
<li>Does not require Flash</li>
</ul>
<p><strong>Cons</strong></p>
<ul>
<li>Text cannot be selected/copied</li>
<li>Uses a server side language (PHP) to generate images and therefore requires a server with PHP</li>
<li>Requires GD library on the server</li>
<li>Slow if there are too many FLIR elements on a single page</li>
</ul>
<p><a href="http://facelift.mawhorter.net/">Website</a> | <a href="http://facelift.mawhorter.net/examples/">Demo</a></p>
<p><strong>My two cents</strong></p>
<p>These techniques are good alternatives to using normal image replacement techniques with CSS for websites that use CMS and require content editors to update text and headings.  However, they should be used sparingly as there is always an issue with speed and bandwidth.  For example, it is ok to use these techniques for headings but not for body content.  After all, websites should not only look pretty, but also accessible and usable.  I prefer sIFR to FLIR because although it is harder to implement, it does not require a server side language, and looks nicer.   It also degrades gracefully which is an important factor in ensuring a website&#8217;s accessibility.   </p>
]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/04/27/sifr-vs-flir-font-replacement-techniques/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

