<?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; CSS</title>
	<atom:link href="http://eisabainyo.net/weblog/category/css/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>Wed, 01 Sep 2010 03:49:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 [...]<p>Read <a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/">How to code an HTML Email Newsletter</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/02/14/web-20-reflection-effect-in-photoshop/" rel="bookmark" title="February 14, 2007">web 2.0 reflection effect in Photoshop</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/01/16/tips-on-building-websites-for-mobile-browsers/" rel="bookmark" title="January 16, 2010">Tips on building websites for mobile browsers</a></li>
</ul><!-- Similar Posts took 66.106 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/">How to code an HTML Email Newsletter</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/02/14/web-20-reflection-effect-in-photoshop/" rel="bookmark" title="February 14, 2007">web 2.0 reflection effect in Photoshop</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/01/16/tips-on-building-websites-for-mobile-browsers/" rel="bookmark" title="January 16, 2010">Tips on building websites for mobile browsers</a></li>
</ul><!-- Similar Posts took 20.720 ms --></div>]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Align an image in center and middle using CSS</title>
		<link>http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/</link>
		<comments>http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 02:02:22 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=1410</guid>
		<description><![CDATA[Here&#8217;s a snippet of CSS and HTML code that aligns an image in center (horizontally) and middle (vertically).  Tested in Firefox, IE, Chrome and Safari.  

CSS
#enter {
	position: absolute;
	text-align: center;
	left: 50%;
	top: 50%;
	margin: -120px auto 0 -130px; /* value of top margin: height of the image divide by 2 (ie: 240 / 2), value of [...]<p>Read <a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/">Align an image in center and middle using CSS</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/" rel="bookmark" title="March 9, 2010">How to style a Submit button in CSS &#8211; Example 2</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 26.988 ms --></div>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a snippet of CSS and HTML code that aligns an image in center (horizontally) and middle (vertically).  Tested in Firefox, IE, Chrome and Safari.  </p>
<p><img src="http://eisabainyo.net/weblog/wp-content/uploads/2010/04/image-in-center-middle.gif" alt="" title="Image in center and middle" width="350" class="alignnone size-full wp-image-1412" /></p>
<p><strong>CSS</strong></p>
<pre>#enter {
	position: absolute;
	text-align: center;
	left: 50%;
	top: 50%;
	margin: -120px auto 0 -130px; /* value of top margin: height of the image divide by 2 (ie: 240 / 2), value of left margin: width of the image divide by 2 (ie: 260 / 2) */
	width: 260px; /* same as the image width */
}

#enter span a {
	display: block;
	width: 260px;
	height: 240px;
	margin: 0 auto;
	position: relative;
	background: transparent url(images/enter.jpg) 0 0 no-repeat;
	text-indent: -5000em;
	outline: 0;
}</pre>
<p><strong>HTML</strong></p>
<pre>&lt;body id=&quot;homepage&quot;&gt;
    &lt;div id=&quot;enter&quot;&gt;
	&lt;span&gt;&lt;a href=&quot;/home&quot;&gt;Enter Site&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
&lt;/body&gt;</pre>
<p>Read <a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/">Align an image in center and middle using CSS</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/" rel="bookmark" title="March 9, 2010">How to style a Submit button in CSS &#8211; Example 2</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 9.867 ms --></div>]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/feed/</wfw:commentRss>
		<slash:comments>0</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.   [...]<p>Read <a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/">How to style a Submit button in CSS &#8211; Example 2</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/" rel="bookmark" title="May 19, 2009">Fieldset and Legend bug in IE8</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/" rel="bookmark" title="June 30, 2009">Change the arrow into a hand when hovering over &#8216;Submit&#8217; button</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>
</ul><!-- Similar Posts took 15.836 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/">How to style a Submit button in CSS &#8211; Example 2</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/" rel="bookmark" title="May 19, 2009">Fieldset and Legend bug in IE8</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/" rel="bookmark" title="June 30, 2009">Change the arrow into a hand when hovering over &#8216;Submit&#8217; button</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>
</ul><!-- Similar Posts took 18.754 ms --></div>]]></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>Tips for iPhone Web App Development</title>
		<link>http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/</link>
		<comments>http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 05:31:32 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development Blog]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=762</guid>
		<description><![CDATA[SEO site checker is the iPhone webapp we launched a few days ago. This is the fourth iPhone web application we&#8217;ve developed and we thought it&#8217;d be useful to share some tips we learnt along the way.  
1.  Get inspiration
Before building anything, we like to browse through existing iPhone web apps that are [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/">Tips for iPhone Web App Development</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2007/09/27/10-tips-i-have-learned-from-wds2007-day-1/" rel="bookmark" title="September 27, 2007">10 tips I have learned from WDS2007 &#8211; Day 1</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/11/15/building-mashups-for-the-society-mashup-australia-part-i/" rel="bookmark" title="November 15, 2009">Building mashups for the society (Mashup Australia) &#8211; Part I</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/" rel="bookmark" title="June 12, 2009">Making a website iPhone-friendly using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/08/12/when-an-iphone-web-app-is-better-than-a-native-web-app/" rel="bookmark" title="August 12, 2010">When an iPhone web app is better than a native app</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/05/how-to-disable-text-auto-correction-in-iphone-web-app/" rel="bookmark" title="March 5, 2010">How to disable text auto correction in iPhone web app</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/08/19/official-press-release-target-tech-savvy-gen-y-customers-with-a-store-locator-for-iphone/" rel="bookmark" title="August 19, 2010">Official Press Release: Target tech-savvy Gen-Y customers with a Store Locator for iPhone</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/06/21/error-logging-in-php/" rel="bookmark" title="June 21, 2007">Error logging in PHP</a></li>
</ul><!-- Similar Posts took 17.834 ms --></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.anansi.com.au/apps/seo/">SEO site checker</a> is the iPhone webapp we launched a few days ago. This is the fourth iPhone web application we&#8217;ve developed and we thought it&#8217;d be useful to share some tips we learnt along the way.  </p>
<p><strong>1.  Get inspiration</strong><br />
Before building anything, we like to browse through existing iPhone web apps that are available. There are quite a few iPhone Apps Galleries, but the ones that we often go to are <a href="http://www.apple.com/webapps/">Apple &#8211; Web apps</a>, <a href="http://www.appsafari.com/">appSafari</a> and <a href="http://iphoneapplicationlist.com/">iPhone Application List</a>.</p>
<p><strong>2.  Gather ideas and information</strong><br />
Now you&#8217;ve been inspired by so many good iPhone apps, it&#8217;s time to brainstorm ideas for an application that you would like to build. An original idea will always do better than a second-hand idea.  </p>
<p><strong>3.  Plan</strong><br />
Planning is the most important part of creating a useful and reliable application.  We like to write down our thoughts and implementation ideas in a notepad before jumping into development.  Have a look at one of our <a href="http://twitpic.com/m8hf5">handwritten notes</a> for SEO site checker.  Apart from planning the implementation details, also think about a URL and name for the application.  When deciding a URL, keep it short because iPhone&#8217;s keyboard is not the easiest to type on.   For example, for our SEO site checker app, the URL is http://www.anansi.com.au/apps/seo/ rather than http://www.anansi.com.au/apps/seo-site-checker/</p>
<p><strong>4.  Develop </strong><br />
One of the advantages that comes with building iPhone web apps as opposed to native apps is that you can use any web programming language.  You don&#8217;t need to learn Cocoa or get yourself familiarised with Mac OS.  Essentially, you are just building another web application, but for a small screen. You can use Javascript, AJAX, CSS, HTML for the client side and any server-side language of your choice; be it PHP, Ruby, Perl, Java, .NET, ColdFusion, or ASP.  Download <a href="http://developer.apple.com/safari/library/navigation/index.html#section=Resource%20Types&#038;topic=Sample%20Code">sample code</a> from Safari Reference Library and explore how things are done.</p>
<p>Our tools of the trade:</p>
<p>1) <a href="http://code.google.com/p/iui/">iUI: iPhone User Interface Framework</a> (consists of a JavaScript library, CSS, and images that make your web app looks and feels like an iPhone Native Apps)</p>
<p>2) <a href="http://www.php.net">PHP</a> with a framework (Zend, CakePHP, CodeIgniter or own)</p>
<p>3) <a href="http://www.jquery.com">jQuery</a> if required (We try to do without unless really necessary because bandwidth is quite precious on mobiles)</p>
<p>4) <a href="http://www.apple.com/safari/">Safari</a> is the best browser to test your iPhone web app on especially if you are using iUI framework.  </p>
<p>5) <a href="https://www.google.com/analytics/">Google Analytics</a> to track the statistics</p>
<p><strong>5. Test</strong><br />
During development, you may be able to get away with using Safari on your computer to test the iPhone web application, but when it comes to actual testing stage, you have to use an iPhone.  There are some errors or bugs that you may only discover when you are using an actual iPhone.  For example, when we were developing SEO site checker, we didn&#8217;t see the need to put &#8220;Please wait&#8230; Calculating your website&#8217;s score&#8221; overlay pop up until we realise how long it could take to load up the result page on an actual iPhone.  </p>
<p><strong>6. Release</strong><br />
Once you are happy to release your iPhone web app, it&#8217;s time to create a nice little icon and a screenshot of the app to submit to <a href="http://www.apple.com/webapps/">Apple &#8211; Web apps</a> directory.  Remember to read submission information for <a href="https://adcweb.apple.com/iphone/icons.php">the icon</a> and <a href="https://adcweb.apple.com/iphone/screenshot.php">the screenshot</a>.  It takes about 2 days to be approved and listed in the directory.  In addition to submitting it to the Apple directory, social networking websites are the best marketing channel to promote just about anything these days.   Tweet about your app on Twitter, share the app link on facebook, blog about it, bookmark the app on delicious; the options are endless.  Once it is released, watch the statistics, obtain feedback from people, continually improve the app and follow the &#8220;Release Early, Release Often&#8221; principle to ensure the success of your iPhone web app.  </p>
<p><strong>7. Read, learn and improve</strong><br />
There is always room for improvement.   Read tutorials and books on iPhone Web App Development.  Learn new tips and tricks.  Improve your web apps.   Some of our recommended books on iPhone web development are:</p>
<ul>
<li><a href="http://www.amazon.com/gp/product/0596805780?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596805780">Building iPhone Apps with HTML, CSS, and JavaScript</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0596805780" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
&#8220;The future of mobile development is clearly web technologies like CSS, HTML and JavaScript. Jonathan Stark shows you how to leverage your existing web development skills to build native iPhone applications using these technologies.&#8221;<br />
– John Allsopp, author and founder of Web Directions
</li>
<li><a href="http://www.amazon.com/gp/product/143022620X?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=143022620X">Beginning Smartphone Web Development</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=143022620X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
Mobile application developers and their managers need to learn mobile web technologies because it’s in their economic interest. Time-to-market and opportunity costs are significantly lower for web-based mobile applications than for native ones.  In this book, Gail teaches the web standards and fundamentals specific to smartphones and other feature-driven mobile phones and devices.
</li>
<li><a href="http://www.amazon.com/gp/product/0321604164?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0321604164">Developing Hybrid Applications for the iPhone</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0321604164" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
&#8220;For those not ready to tackle the complexities of Objective-C, this is a great way to get started building iPhone apps. If you know the basics of HTML, JavaScript, and CSS, you’ll be building apps in no time.&#8221;<br />
– August Trometer, Owner of FoggyNoggin Software, www.foggynoggin.com
</li>
<li><a href="http://www.amazon.com/gp/product/0470251557?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0470251557">Professional iPhone and iPod touch Programming</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0470251557" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
 This book is for web developers who want to build new applications for iPhone and iPod touch. A working knowledge of HTML/XHTML, CSS, JavaScript, and AJAX is necessary.
</li>
</ul>
<p>Like we said earlier, one thing we like about iPhone web apps is that you don&#8217;t have to learn a new programming language like Objective C or buy a Mac computer in order to develop an app.  However, when it comes to making a profit from your apps, or ultilising iPhone App Store&#8217;s features, native apps have more advantages.  If you are wanting to get into iPhone native app development without doing the programming yourself, check out <a href="http://bit.ly/d2kMBg" target="_blank">How To Create iPhone Apps With No Programming Experience</a> ebook that teaches you step-by-step how to outsource and market native iPhone app development.  The company behind the ebook has launched 22 iPhone Apps so far using this method and made $56,366.69 in just ad revenue.  So if you have got a good idea for an iPhone app, then it&#8217;s worth giving a shot.  </p>
<div class="contact-us">Interested in getting an <a href="http://www.anansi.com.au/work.php">iPhone web application</a> for your company or organisation?  <a href="http://www.anansi.com.au/contact.php">Contact us</a> at <a href="http://www.anansi.com.au/">Anansi Web Development</a> to find out how we may be able to help you.</div>
<p>Read <a href="http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/">Tips for iPhone Web App Development</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2007/09/27/10-tips-i-have-learned-from-wds2007-day-1/" rel="bookmark" title="September 27, 2007">10 tips I have learned from WDS2007 &#8211; Day 1</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/11/15/building-mashups-for-the-society-mashup-australia-part-i/" rel="bookmark" title="November 15, 2009">Building mashups for the society (Mashup Australia) &#8211; Part I</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/" rel="bookmark" title="June 12, 2009">Making a website iPhone-friendly using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/08/12/when-an-iphone-web-app-is-better-than-a-native-web-app/" rel="bookmark" title="August 12, 2010">When an iPhone web app is better than a native app</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/05/how-to-disable-text-auto-correction-in-iphone-web-app/" rel="bookmark" title="March 5, 2010">How to disable text auto correction in iPhone web app</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/08/19/official-press-release-target-tech-savvy-gen-y-customers-with-a-store-locator-for-iphone/" rel="bookmark" title="August 19, 2010">Official Press Release: Target tech-savvy Gen-Y customers with a Store Locator for iPhone</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/06/21/error-logging-in-php/" rel="bookmark" title="June 21, 2007">Error logging in PHP</a></li>
</ul><!-- Similar Posts took 10.667 ms --></div>]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/feed/</wfw:commentRss>
		<slash:comments>2</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 [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/09/14/read-more-using-jquery-live-event/">Read more using jQuery live event</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2006/01/26/dummy-text/" rel="bookmark" title="January 26, 2006">Dummy Text</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/06/17/clear-default-text-in-input-boxes-on-click-with-jquery/" rel="bookmark" title="June 17, 2010">Clear default text in input boxes on click with jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/28/check-username-availability-using-ajax-and-jquery/" rel="bookmark" title="May 28, 2009">Check username availability using AJAX and jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/store-login-information-in-cookie-using-jquery/" rel="bookmark" title="February 20, 2009">Store login information in cookie using jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/display-thickbox-on-page-load/" rel="bookmark" title="February 20, 2009">Display thickbox on page load</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/07/back-to-top-link-with-jquery/" rel="bookmark" title="April 7, 2009">Back to top link with jQuery</a></li>
</ul><!-- Similar Posts took 27.138 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2009/09/14/read-more-using-jquery-live-event/">Read more using jQuery live event</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2006/01/26/dummy-text/" rel="bookmark" title="January 26, 2006">Dummy Text</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/06/17/clear-default-text-in-input-boxes-on-click-with-jquery/" rel="bookmark" title="June 17, 2010">Clear default text in input boxes on click with jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/28/check-username-availability-using-ajax-and-jquery/" rel="bookmark" title="May 28, 2009">Check username availability using AJAX and jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/store-login-information-in-cookie-using-jquery/" rel="bookmark" title="February 20, 2009">Store login information in cookie using jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/display-thickbox-on-page-load/" rel="bookmark" title="February 20, 2009">Display thickbox on page load</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/07/back-to-top-link-with-jquery/" rel="bookmark" title="April 7, 2009">Back to top link with jQuery</a></li>
</ul><!-- Similar Posts took 10.391 ms --></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 [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/">Framebar (like diggbar) example in html and css with no javascript</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/27/code-to-embed-google-map-and-street-view/" rel="bookmark" title="April 27, 2009">Code to embed Google Map and Street View</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/02/19/tips-to-creating-an-email-signature-for-your-online-brand/" rel="bookmark" title="February 19, 2010">Tips to creating an email signature for your online brand</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/29/click-to-copy-and-open-site-script/" rel="bookmark" title="May 29, 2010">Click to copy and open site script</a></li>
</ul><!-- Similar Posts took 13.049 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/">Framebar (like diggbar) example in html and css with no javascript</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/27/code-to-embed-google-map-and-street-view/" rel="bookmark" title="April 27, 2009">Code to embed Google Map and Street View</a></li>

<li><a href="http://eisabainyo.net/weblog/2005/12/26/transitional-vs-strict/" rel="bookmark" title="December 26, 2005">Transitional vs. Strict</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/02/19/tips-to-creating-an-email-signature-for-your-online-brand/" rel="bookmark" title="February 19, 2010">Tips to creating an email signature for your online brand</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/31/how-to-code-an-html-email-newsletter/" rel="bookmark" title="May 31, 2010">How to code an HTML Email Newsletter</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/29/click-to-copy-and-open-site-script/" rel="bookmark" title="May 29, 2010">Click to copy and open site script</a></li>
</ul><!-- Similar Posts took 9.171 ms --></div>]]></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>2</slash:comments>
		</item>
		<item>
		<title>Some simple but effective CSS rules for IE 6</title>
		<link>http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/</link>
		<comments>http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 06:40:42 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=699</guid>
		<description><![CDATA[All these CSS are used in a conditional CSS file for IE 6 to ensure CSS validity as some of the properties used here are proprietary to the IE 6 browser. 

&#60;!--[if IE 6]&#62;
&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;ie6.css&#34; /&#62;
&#60;![endif]--&#62;

Setting an opacity

.transparency {
   filter: alpha(opacity=50);
}
Change the link to a hand cursor

a.link {
   cursor: [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/">Some simple but effective CSS rules for IE 6</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/05/11/opacity-in-css/" rel="bookmark" title="May 11, 2009">Opacity in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/02/14/web-20-reflection-effect-in-photoshop/" rel="bookmark" title="February 14, 2007">web 2.0 reflection effect in Photoshop</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/09/19/export-into-excel-with-formula-in-php/" rel="bookmark" title="September 19, 2007">Export into excel with formula in PHP</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/" rel="bookmark" title="June 12, 2009">Making a website iPhone-friendly using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 18.477 ms --></div>]]></description>
			<content:encoded><![CDATA[<p>All these CSS are used in a conditional CSS file for IE 6 to ensure CSS validity as some of the properties used here are proprietary to the IE 6 browser. </p>
<pre>
&lt;!--[if IE 6]&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ie6.css&quot; /&gt;
&lt;![endif]--&gt;
</pre>
<p><strong>Setting an opacity</strong></p>
<pre>
.transparency {
   filter: alpha(opacity=50);
}</pre>
<p><strong>Change the link to a hand cursor</strong></p>
<pre>
a.link {
   cursor: pointer;
}</pre>
<p><strong>Get rid of double margin bug by adding display:inline to a block level element</strong></p>
<pre>
#sidebar {
   float: left;
   margin-left: 20px;
   width: 300px;
   display: inline;
}</pre>
<p><strong>Ensure proper positioning of list items</strong></p>
<pre>
ul li {
   display: inline-block;
}</pre>
<p><strong>Hide extra spaces and padding</strong></p>
<pre>
#header {
   height: 10px;
   overflow: hidden;
}</pre>
<p><strong>Bring a layer on top of other layers</strong></p>
<pre>
#close {
   position: absolute;
   z-index: 50;
}</pre>
<p><strong>Resolve float issue in IE6 by triggering hasLayout property</strong></p>
<pre>
#content {
   zoom: 1;
}</pre>
<p><strong>PNG transparency in IE6 (uses <a href="http://www.twinhelix.com/css/iepngfix/">IEPNGFix</a> code)</strong></p>
<pre>
#background {
   behavior: url(iepngfix.htc);
}</pre>
<p>Read <a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/">Some simple but effective CSS rules for IE 6</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2009/05/11/opacity-in-css/" rel="bookmark" title="May 11, 2009">Opacity in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/02/14/web-20-reflection-effect-in-photoshop/" rel="bookmark" title="February 14, 2007">web 2.0 reflection effect in Photoshop</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/09/19/export-into-excel-with-formula-in-php/" rel="bookmark" title="September 19, 2007">Export into excel with formula in PHP</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/" rel="bookmark" title="June 12, 2009">Making a website iPhone-friendly using CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 16.185 ms --></div>]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/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;
}
<p>Read <a href="http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/">Change the arrow into a hand when hovering over &#8216;Submit&#8217; button</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/" rel="bookmark" title="March 9, 2010">How to style a Submit button in CSS &#8211; Example 2</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/" rel="bookmark" title="May 19, 2009">Fieldset and Legend bug in IE8</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/05/how-to-disable-text-auto-correction-in-iphone-web-app/" rel="bookmark" title="March 5, 2010">How to disable text auto correction in iPhone web app</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/store-login-information-in-cookie-using-jquery/" rel="bookmark" title="February 20, 2009">Store login information in cookie using jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/06/17/clear-default-text-in-input-boxes-on-click-with-jquery/" rel="bookmark" title="June 17, 2010">Clear default text in input boxes on click with jQuery</a></li>
</ul><!-- Similar Posts took 7.112 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2009/06/30/change-the-arrow-into-a-hand-when-hovering-over-submit-button/">Change the arrow into a hand when hovering over &#8216;Submit&#8217; button</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/03/09/how-to-style-a-submit-button-in-css-example-2/" rel="bookmark" title="March 9, 2010">How to style a Submit button in CSS &#8211; Example 2</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/04/24/how-to-style-a-submit-button-in-css/" rel="bookmark" title="April 24, 2009">How to style a Submit button in CSS</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/05/19/fieldset-and-legend-bug-in-ie8/" rel="bookmark" title="May 19, 2009">Fieldset and Legend bug in IE8</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/05/how-to-disable-text-auto-correction-in-iphone-web-app/" rel="bookmark" title="March 5, 2010">How to disable text auto correction in iPhone web app</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/20/store-login-information-in-cookie-using-jquery/" rel="bookmark" title="February 20, 2009">Store login information in cookie using jQuery</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/06/17/clear-default-text-in-input-boxes-on-click-with-jquery/" rel="bookmark" title="June 17, 2010">Clear default text in input boxes on click with jQuery</a></li>
</ul><!-- Similar Posts took 6.987 ms --></div>]]></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>0</slash:comments>
		</item>
		<item>
		<title>Making a website iPhone-friendly using CSS</title>
		<link>http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/</link>
		<comments>http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 02:15:41 +0000</pubDate>
		<dc:creator>eisabai</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://eisabainyo.net/weblog/?p=664</guid>
		<description><![CDATA[Unlike any other mobile web browsers, iPhone comes with Safari browser which makes it possible to view any website that works on Safari.   However, the challenge is that the screen size of an iPhone is not as big as a traditional monitor and therefore, if you have got a website which has a [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/">Making a website iPhone-friendly using CSS</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/05/30/designing-and-optimising-websites-for-ipad/" rel="bookmark" title="May 30, 2010">Designing and Optimising Websites for iPad</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/26/wordpress-iphone-app-a-step-by-step-user-guide-to-using-wordpress-for-iphone/" rel="bookmark" title="March 26, 2010">WordPress iPhone App &#8211; a step by step user guide to using WordPress for iPhone</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/01/16/tips-on-building-websites-for-mobile-browsers/" rel="bookmark" title="January 16, 2010">Tips on building websites for mobile browsers</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/" rel="bookmark" title="October 27, 2009">Tips for iPhone Web App Development</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>
</ul><!-- Similar Posts took 18.165 ms --></div>]]></description>
			<content:encoded><![CDATA[<p>Unlike any other mobile web browsers, iPhone comes with Safari browser which makes it possible to view any website that works on Safari.   However, the challenge is that the screen size of an iPhone is not as big as a traditional monitor and therefore, if you have got a website which has a width of say, 1000px, the website will appear really small and unreadable on an iPhone screen.   </p>
<p><img src="http://eisabainyo.net/weblog/wp-content/uploads/2009/06/iphone_screenshot.jpg" alt="Screenshot of Web Development Blog on iPhone" title="Screenshot of Web Development Blog on iPhone" width="320" height="480" class="alignnone size-full wp-image-674" /><br />
<em>Screenshot of Web Development Blog on iPhone</em></p>
<p>Here are the steps to make a website iPhone-friendly using just CSS.  </p>
<h3>1.  Create a separate stylesheet for iPhone</h3>
<p>Tips:<br />
<strong>1. Hide unnecessary elements</strong><br />
On this blog, I set the following elements to <code>display: none</code> in CSS.   Use display: none rather than visibility: hidden because visibility: hidden will also hide the content inside an element and not hide the element completely.<br />
<strong>2. Use a fluid layout </strong><br />
Set the width of your main container (or any other containers) to 100% rather than a specific width in pixel.   </p>
<p>For example: </p>
<pre>
body {
background-color: #fff;
}

.header, .footer {
width: 100%;
}

.sidebar {
display: none;
}
</pre>
<pre>
&lt;link media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;/iphone.css&quot; type= &quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;</pre>
<p>The viewport of an iPhone is 320 pixels in portrait orientation and 480 pixels in landscape orientation. </p>
<h3>2.  Specify meta data for viewport</h3>
<pre>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&gt;</pre>
<p>Here, I am not specifying any width because I am using a fluid layout.  Setting the user-scalable property to 0 (false) ensures that the user isn&#8217;t able to zoom in or out the website.  Refer to <a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html">Safari HTML Reference &#8211; Supported Meta Tags</a> to see any other meta tags that you might want to use.  </p>
<h3>3. Create an icon</h3>
<p>This is very much like a favicon that will be used when the user add your website to their home screen.  Use the following code to specify a custom icon.  The icon should be at least 57&#215;57 pixel.  </p>
<pre>&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/iphone.png&quot; /&gt;</pre>
<p><img src="http://iphone.facebook.com/apple-touch-icon.png" alt="apple-touch-icon" /><br />
<em>An example of apple-touch-icon for Facebook</em></p>
<p><img src="http://eisabainyo.net/weblog/wp-content/themes/fervens-c/iphone.png" alt="apple-touch-icon" /><br />
<em>An example of apple-touch-icon for Web Development Blog</em></p>
<h3>4. Putting it altogether</h3>
<p>Add all of the above to the &lt;head&gt; section of your website.  </p>
<pre>
&lt;!-- Start iPhone --&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&gt;
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/iphone.png&quot; /&gt;
&lt;link media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;/iphone.css&quot; type= &quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;!-- End iPhone --&gt;
</pre>
<p><strong>For WordPress (template specific)</strong></p>
<pre>
&lt;!-- Start iPhone --&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&gt;
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;&lt;?php echo bloginfo('template_url'); ?&gt;/iphone.png&quot; /&gt;
&lt;link media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;&lt;?php echo bloginfo('template_url'); ?&gt;/iphone.css&quot; type= &quot;text/css&quot; rel=&quot;stylesheet&quot; /&gt;
&lt;!-- End iPhone --&gt;
</pre>
<h3>A few things to note</h3>
<ul>
<li>The overflow CSS property does not work very well on iPhone.   The scrollbars aren&#8217;t displayed but you can use two fingers and scroll across the area.   </li>
<li>This solution does not make the website light-weight because all elements on your website are still loaded.   However, it does look neater and cleaner because many elements are hidden via CSS using <code>display: none</code>.  </li>
<li>The ideal solution is to develop a special version of the website for iPhone using <a href="http://codecanyon.net/item/php-mobile-phone-detection/98397?ref=eisabai" target="_blank">mobile detection script</a> and essentially reduces the bandwidth required to load the website on mobile devices. </li>
<li>Have a look at a few websites that are optimisied for an iPhone for an inspiration.   View this blog on an iPhone, check out  <a href="http://themeforest.net/item/sofa-ibloggr-wordpress-iphone-theme/full_screen_preview/79253?ref=eisabai" target="_blank">iBloggr theme</a> (WordPress iPhone Theme) or view demos of these <a href="http://eisabainyo.net/website-templates/mobile-templates/" target="_blank">mobile templates</a>. </li>
</ul>
<h3>Recommended books</h3>
<ul>
<li><a href="http://www.amazon.com/gp/product/0596805780?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596805780">Building iPhone Apps with HTML, CSS, and JavaScript: Making App Store Apps Without Objective-C or Cocoa</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0596805780" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li>
<li><a href="http://www.amazon.com/gp/product/143022620X?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=143022620X">Beginning Smartphone Web Development: Building Javascript, CSS, HTML and Ajax-Based Applications for iPhone, Android, Palm Pre, Blackberry, Windows Mobile and Nokia S60</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=143022620X" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
<li><a href="http://www.amazon.com/gp/product/0321604164?ie=UTF8&#038;tag=eisabainyonet-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321604164">Developing Hybrid Applications for the iPhone: Using HTML, CSS, and JavaScript to Build Dynamic Apps for the iPhone</a><img src="http://www.assoc-amazon.com/e/ir?t=eisabainyonet-20&#038;l=as2&#038;o=1&#038;a=0321604164" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
</li>
</ul>
<div class="contact-us">Interested in getting an <a href="http://www.anansi.com.au/work.php">iPhone friendly website</a> for your company or organisation?  <a href="http://www.anansi.com.au/contact.php">Contact us</a> at <a href="http://www.anansi.com.au/">Anansi Web Development</a> to find out how we may be able to help you.</div>
<p>Read <a href="http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/">Making a website iPhone-friendly using CSS</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/05/30/designing-and-optimising-websites-for-ipad/" rel="bookmark" title="May 30, 2010">Designing and Optimising Websites for iPad</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/08/28/framebar-like-diggbar-example-in-html-and-css-with-no-javascript/" rel="bookmark" title="August 28, 2009">Framebar (like diggbar) example in html and css with no javascript</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/26/wordpress-iphone-app-a-step-by-step-user-guide-to-using-wordpress-for-iphone/" rel="bookmark" title="March 26, 2010">WordPress iPhone App &#8211; a step by step user guide to using WordPress for iPhone</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/07/02/some-simple-but-effective-css-rules-for-ie-6/" rel="bookmark" title="July 2, 2009">Some simple but effective CSS rules for IE 6</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/01/16/tips-on-building-websites-for-mobile-browsers/" rel="bookmark" title="January 16, 2010">Tips on building websites for mobile browsers</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/10/27/tips-for-iphone-web-app-development/" rel="bookmark" title="October 27, 2009">Tips for iPhone Web App Development</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/04/22/align-an-image-in-center-and-middle-using-css/" rel="bookmark" title="April 22, 2010">Align an image in center and middle using CSS</a></li>
</ul><!-- Similar Posts took 10.946 ms --></div>]]></content:encoded>
			<wfw:commentRss>http://eisabainyo.net/weblog/2009/06/12/making-a-website-iphone-friendly-using-css/feed/</wfw:commentRss>
		<slash:comments>14</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 [...]<p>Read <a href="http://eisabainyo.net/weblog/2009/05/26/highlight-the-current-page-link-in-wordpress/">Highlight the current page link in WordPress</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/02/22/how-to-create-a-archive-page-in-wordpress/" rel="bookmark" title="February 22, 2010">5 steps to creating a custom Archive page in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/05/14/customising-categoryphp-in-wordpress/" rel="bookmark" title="May 14, 2007">Customising category.php in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2008/03/06/internet-explorer-8-beta-is-here/" rel="bookmark" title="March 6, 2008">Internet Explorer 8 (beta) is here</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/09/display-10-recent-post-titles-on-homepage/" rel="bookmark" title="February 9, 2009">Display 10 recent post titles on homepage</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/02/01/common-elements-on-magazine-websites/" rel="bookmark" title="February 1, 2010">Common elements on magazine websites</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 21.955 ms --></div>]]></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>
<p>Read <a href="http://eisabainyo.net/weblog/2009/05/26/highlight-the-current-page-link-in-wordpress/">Highlight the current page link in WordPress</a> on Web Development Blog!</p><div><h3>Other similiar posts that you might be interested in:</h3><ul><li><a href="http://eisabainyo.net/weblog/2010/02/22/how-to-create-a-archive-page-in-wordpress/" rel="bookmark" title="February 22, 2010">5 steps to creating a custom Archive page in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/03/10/display-5-latest-posts-in-each-category-in-wordpress/" rel="bookmark" title="March 10, 2010">Display 5 latest posts in each category in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2007/05/14/customising-categoryphp-in-wordpress/" rel="bookmark" title="May 14, 2007">Customising category.php in WordPress</a></li>

<li><a href="http://eisabainyo.net/weblog/2008/03/06/internet-explorer-8-beta-is-here/" rel="bookmark" title="March 6, 2008">Internet Explorer 8 (beta) is here</a></li>

<li><a href="http://eisabainyo.net/weblog/2009/02/09/display-10-recent-post-titles-on-homepage/" rel="bookmark" title="February 9, 2009">Display 10 recent post titles on homepage</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/02/01/common-elements-on-magazine-websites/" rel="bookmark" title="February 1, 2010">Common elements on magazine websites</a></li>

<li><a href="http://eisabainyo.net/weblog/2010/05/10/how-to-customise-wordpress-admin-login-page/" rel="bookmark" title="May 10, 2010">How to customise WordPress Admin Login page</a></li>
</ul><!-- Similar Posts took 13.466 ms --></div>]]></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>
	</channel>
</rss>
