<?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>Shakeel Akbar Personal website</title>
	<atom:link href="http://www.shakeelakbar.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shakeelakbar.com</link>
	<description>Shakeel Akbar pesonal website, graphicspk.com, website designing, logo designing, PSD to HTML</description>
	<lastBuildDate>Sat, 26 Dec 2009 18:20:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>input fields with CSS tricks</title>
		<link>http://www.shakeelakbar.com/index.php/2009/12/input-fields-with-css-tricks/</link>
		<comments>http://www.shakeelakbar.com/index.php/2009/12/input-fields-with-css-tricks/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 14:13:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[input fields with CSS tricks]]></category>
		<category><![CDATA[css tricks]]></category>
		<category><![CDATA[enhance your input fields]]></category>
		<category><![CDATA[input fields]]></category>

		<guid isPermaLink="false">http://www.shakeelakbar.com/?p=209</guid>
		<description><![CDATA[
Enhance your input fields with simple CSS tricks
We&#8217;re all trying to build an effective and good looking web forms. But there are always a new challenges. If you read my previous articles on how to build a better web forms, you could have noticed there are so many details. Label positioning, context highlighting or justifying [...]]]></description>
			<content:encoded><![CDATA[<h2></h2>
<h2><span style="color: #ff6600;"><span style="color: #008000;">Enhance your input fields with simple CSS tricks</span></span></h2>
<p>We&#8217;re all trying to build an effective and good looking web forms. But there are always a new challenges. If you read my previous articles on how to build a better web forms, you could have noticed there are so many details. Label positioning, context highlighting or justifying elements. But, with just a few simple CSS tricks you can make a usual, boring web forms more effective and exciting.</p>
<p style="text-align: center;"><img class="size-full wp-image-210  aligncenter" title="textfield image" src="http://www.shakeelakbar.com/wp-content/uploads/2009/12/image.png" alt="textfield image" width="500" height="202" /></p>
<p>At least what you can do is to add borders and padding to your input fields. Two examples above shows how you can sat the border color to match your color schema. It is also a good practice to add some padding to input fields. That will make forms more clear. In this example I set the 4px padding to inputs and textarea.</p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block; border:solid 1px #999;">
<p>#inputArea<br />
{<br />
font-family: Arial, Sans-Serif;<br />
font-size: 13px;<br />
background-color: #d6e5f4;<br />
padding: 10px;<br />
}</p>
<p>#inputArea input[type="text"], #inputArea textarea<br />
{<br />
font-family: Arial, Sans-Serif;<br />
font-size: 13px;<br />
margin-bottom: 5px;<br />
display: block;<br />
padding: 4px;<br />
border: solid 1px #85b1de;<br />
width: 300px;<br />
}</p></div>
<p>Let me review the code above shortly. This is the code for the second example, the blue one. The entire form has a light blue background #d6ee5f4 and 10px padding. Each input element is displayed as a block, which ensures that labels are positioned above input fields.</p>
<p>Now, this was very simple. But you can do more. You can&#8230;</p>
<h2><span style="color: #008000;">Add some background&#8230;</span></h2>
<p>You can also add some solid background like in the example below</p>
<p style="text-align: center;"><img class="size-full wp-image-213  aligncenter" title="add image" src="http://www.shakeelakbar.com/wp-content/uploads/2009/12/image1.png" alt="add image" width="340" height="269" /></p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block; border:solid 1px #999;">
<p>#inputArea input[type="text"], #inputArea textarea<br />
{<br />
font-family: Arial, Sans-Serif;<br />
font-size: 13px;<br />
margin-bottom: 5px;<br />
display: block;<br />
padding: 4px;<br />
border: solid 1px #85b1de;<br />
width: 300px;<br />
background-color: #EDF2F7;<br />
}</p></div>
<p style="text-align: center;"><img class="aligncenter" title="simple text field" src="http://www.shakeelakbar.com/wp-content/uploads/2009/12/image2.png" alt="simple text field" width="330" height="271" /></p>
<p style="text-align: center;"><img class="size-full wp-image-226  aligncenter" title="image(3)" src="http://www.shakeelakbar.com/wp-content/uploads/2009/12/image3.png" alt="image(3)" width="339" height="267" /></p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block;  border:solid 1px #999;">
<p>#inputArea input[type="text"], #inputArea textarea<br />
{<br />
font-family: Arial, Sans-Serif;<br />
font-size: 13px;<br />
margin-bottom: 5px;<br />
display: block;<br />
padding: 4px;<br />
border: solid 1px #85b1de;<br />
width: 300px;<br />
background-image: url( &#8216;blue_bg.png&#8217; );<br />
background-repeat: repeat-x;<br />
background-position: top;<br />
}</p></div>
<p>The trick is simple and is contained in last three lines of the code. You add gradient image as background, set it to be repeated horizontally (repeat-x), and position it to the top of the field. Simple, eh?</p>
<p>But you can do even more! You can&#8230;</p>
<h2><span style="color: #008000;">Add some behavior<br />
But very simple. Make the active input field different. Like in the example below.</span></h2>
<p style="text-align: center;"><img class="aligncenter" title="image(4)" src="http://www.shakeelakbar.com/wp-content/uploads/2009/12/image4.png" alt="image(4)" width="339" height="283" /></p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block;  border:solid 1px #999;">
<p>#inputArea input[type="text"]:focus, #inputArea textarea:focus<br />
{<br />
background-image: none;<br />
background-color: #ffffff;<br />
border: solid 1px #33677F;<br />
}</p></div>
<p>As you can see, the code is very simple. Each time a field get the focus a different styles will be applied. It changes the background and the border. But wait! This doesn&#8217;t work in Internet Explorer !! So we have to call JavaScript (or jQuery) for help. Ok, you now know that I lied. You can&#8217;t do this only with CSS. But, hey, it&#8217;s not my false, talk to IE guys <img src='http://www.shakeelakbar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ok, to do this, we have to change our CSS slightly.</p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block;  border:solid 1px #999;">
<p>inputArea input, #inputArea textarea<br />
{<br />
font-family: Arial, Sans-Serif;<br />
font-size: 13px;<br />
margin-bottom: 5px;<br />
display: block;<br />
padding: 4px;<br />
width: 300px;<br />
}</p></div>
<p>We will define all styles for all inputs and texareas except for background and border</p>
<div style="background-color:#e7e7e7; color:#484949;  overflow-x:scroll; padding:10px; display:block;  border:solid 1px #999;">
<p>$(document).ready(function(){<br />
$(&#8221;input, textarea&#8221;).addClass(&#8221;idle&#8221;);<br />
$(&#8221;input, textarea&#8221;).focus(function(){<br />
$(this).addClass(&#8221;activeField&#8221;).removeClass(&#8221;idle&#8221;);<br />
}).blur(function(){<br />
$(this).removeClass(&#8221;activeField&#8221;).addClass(&#8221;idle&#8221;);<br />
});<br />
});</p></div>
<p>It is now working in IE. Of course, it is working in Firefox as well. This code does three things: initially, it adds &#8220;idle&#8221; class to all of the inputs and defined behavior for focus and blur events. Maybe not perfect, but it&#8217;s working.</p>
<p>So, what else you can do?</p>
<h2><span style="color: #008000;">Experiment</span></h2>
<p>Yeas, that&#8217;s right, experiment with different colors, border sizes and backgrounds. You can for example also add hover functionality. Try, and get rid of boring forms!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shakeelakbar.com/index.php/2009/12/input-fields-with-css-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorials</title>
		<link>http://www.shakeelakbar.com/index.php/2009/12/tutorials/</link>
		<comments>http://www.shakeelakbar.com/index.php/2009/12/tutorials/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 13:52:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css tricks]]></category>
		<category><![CDATA[form skinning]]></category>

		<guid isPermaLink="false">http://www.shakeelakbar.com/?p=205</guid>
		<description><![CDATA[coming soon
]]></description>
			<content:encoded><![CDATA[<p>coming soon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shakeelakbar.com/index.php/2009/12/tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Print Design</title>
		<link>http://www.shakeelakbar.com/index.php/2009/12/print-design/</link>
		<comments>http://www.shakeelakbar.com/index.php/2009/12/print-design/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:13:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Portfolio]]></category>
		<category><![CDATA[Print Design]]></category>

		<guid isPermaLink="false">http://www.shakeelakbar.com/?p=175</guid>
		<description><![CDATA[coming soon&#8230;..
]]></description>
			<content:encoded><![CDATA[<p>coming soon&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shakeelakbar.com/index.php/2009/12/print-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logo Design</title>
		<link>http://www.shakeelakbar.com/index.php/2009/12/logo-design/</link>
		<comments>http://www.shakeelakbar.com/index.php/2009/12/logo-design/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:10:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Logo Design]]></category>
		<category><![CDATA[My Portfolio]]></category>

		<guid isPermaLink="false">http://www.shakeelakbar.com/?p=172</guid>
		<description><![CDATA[coming sooon&#8230;.
]]></description>
			<content:encoded><![CDATA[<p>coming sooon&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shakeelakbar.com/index.php/2009/12/logo-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website Design</title>
		<link>http://www.shakeelakbar.com/index.php/2009/12/website-design/</link>
		<comments>http://www.shakeelakbar.com/index.php/2009/12/website-design/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 06:00:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[My Portfolio]]></category>
		<category><![CDATA[Website Design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.shakeelakbar.com/?p=165</guid>
		<description><![CDATA[
Website Design

coming soon&#8230;&#8230;
]]></description>
			<content:encoded><![CDATA[<p><strong><br />
<blockquote>Website Design</p></blockquote>
<p></strong></p>




<h2>My Websites</h2>
<p>These are all my websites.</p>

<div class="portfolio-website">
<div style="float:none;">
    <div class="website-thumbnail"><a href="http://www.graphicspk.com" target="_blank"><img src="http://www.shakeelakbar.com/wp-content/plugins/wp-portfolio/cache//8cb4ce43cf11460859b4d8db1d35fb0a.jpg" alt="Graphics Pakistan"/></a></div>

</div>

<div class="new_body_description">
    <div class="website-name"><a href="http://www.graphicspk.com" target="_blank">Graphics Pakistan</a></div>
    <div class="website-url"><a href="http://www.graphicspk.com" target="_blank">http://www.graphicspk.com</a></div>
    <div class="website-description">All about Graphics pk</div>
    <div class="website-clear"></div>
</div>
</div>
<div class="wpp-creditlink" style="font-size: 8pt; font-family: Verdana; float: right;">Created by <a href="http://www.shakeelakbar.com" target="_blank">Portfolio</a> by <a href="http://www.shakeelakbar.com/index.php/about" target="_blank">Shakeel Akbar</a></div>


<p>coming soon&#8230;&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shakeelakbar.com/index.php/2009/12/website-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
