<?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>jQuery Tutorials &#38; Plugins &#187; css</title>
	<atom:link href="http://jqueryblog.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jqueryblog.net</link>
	<description></description>
	<lastBuildDate>Mon, 05 Jul 2010 08:45:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Enhance Your Form Input Fields with jQuery</title>
		<link>http://jqueryblog.net/2010/07/how-to-enhance-your-form-input-fields-with-jquery/</link>
		<comments>http://jqueryblog.net/2010/07/how-to-enhance-your-form-input-fields-with-jquery/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 08:45:57 +0000</pubDate>
		<dc:creator>Osman Erdo&#287;an</dc:creator>
				<category><![CDATA[jQuery Tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css button]]></category>
		<category><![CDATA[css form]]></category>
		<category><![CDATA[css jquery]]></category>
		<category><![CDATA[css tutorial]]></category>
		<category><![CDATA[enhance button]]></category>
		<category><![CDATA[enhance form]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[form css]]></category>
		<category><![CDATA[jquery button]]></category>
		<category><![CDATA[submit form]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://jqueryblog.net/?p=67</guid>
		<description><![CDATA[jQuery makes it easy to spice up our search bars and form input fields with simple touches that really enhances the user’s experience. Let’s look at how jQuery can be used to show/hide a default value inside a field and provide visual user feedback when the field is selected.
The example we’ll be creating features a [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjqueryblog.net%2F2010%2F07%2Fhow-to-enhance-your-form-input-fields-with-jquery%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjqueryblog.net%2F2010%2F07%2Fhow-to-enhance-your-form-input-fields-with-jquery%2F" height="61" width="51" /></a></div><p>jQuery makes it easy to spice up our search bars and form input fields with simple touches that really enhances the user’s experience. Let’s look at how jQuery can be used to show/hide a default value inside a field and provide visual user feedback when the field is selected.</p>
<p>The example we’ll be creating features a simple search bar and icon which appears grey as standard but turns to a cool blue when focused. By default the input displays the words I’m looking for…, which disappears when the field is selected.</p>
<p><strong>Creating the search form</strong></p>
<p><img src="http://line25.com/wp-content/uploads/2010/input-jquery/searchform.png" alt="jquery" /></p>
<pre class="brush: xml;">&lt;form action=&quot;&quot; method=&quot;get&quot;&gt;
	&lt;fieldset&gt;
		&lt;input type=&quot;text&quot; id=&quot;searchbar&quot; /&gt;
		&lt;input type=&quot;submit&quot; value=&quot;Search&quot; id=&quot;searchbtn&quot; /&gt;
	&lt;/fieldset&gt;
&lt;/form&gt;</pre>
<p><strong>CSS:</strong></p>
<pre class="brush: css;">#searchbar {
	width: 425px;
	float: left; padding: 20px 150px 20px 40px;
	background: #ededed url(bar-bg.png) repeat-x;
	border: 3px solid #c7c7c7;
	border-radius: 100px; -moz-border-radius: 100px; -webkit-border-radius: 100px;
	font: italic 54px Georgia; color: #898989;
	outline: none; /*Remove Chrome and Safari glows on focus*/
}

#searchbar.active {
	background: #ebf3fc url(bar-bg-active.png) repeat-x;
	border: 3px solid #abd2ff;
}

#searchbtn {
	width: 67px; height: 70px; float: left; margin: 18px 0 0 -115px;
	background: url(search.png); text-indent: -9999px;
	padding: 0 0 0 67px; /*IE fix*/
	cursor: pointer;
}
	#searchbtn:hover {
		background-position: 0 -70px;
	}</pre>
<p>JS:</p>
<pre class="brush: jscript;">$(document).ready(function() {
	$(&quot;#searchbar&quot;).attr(&quot;value&quot;, &quot;I'm looking for...&quot;);

	var text = &quot;I'm looking for...&quot;;

	$(&quot;#searchbar&quot;).focus(function() {
		$(this).addClass(&quot;active&quot;);
		if($(this).attr(&quot;value&quot;) == text) $(this).attr(&quot;value&quot;, &quot;&quot;);
	});

	$(&quot;#searchbar&quot;).blur(function() {
		$(this).removeClass(&quot;active&quot;);
		if($(this).attr(&quot;value&quot;) == &quot;&quot;) $(this).attr(&quot;value&quot;, text);
	});
});</pre>
<p><a href="http://line25.com/wp-content/uploads/2010/input-jquery/demo/index.html" target="_blank"><strong>View the demo</strong></a></p>
<p><a href="http://line25.com/tutorials/how-to-enhance-your-form-input-fields-with-jquery" target="_blank"><strong>Web</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jqueryblog.net/2010/07/how-to-enhance-your-form-input-fields-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Captions Generated with CSS and jQuery</title>
		<link>http://jqueryblog.net/2009/11/image-captions-generated-with-css-and-jquery/</link>
		<comments>http://jqueryblog.net/2009/11/image-captions-generated-with-css-and-jquery/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 20:02:54 +0000</pubDate>
		<dc:creator>Osman Erdo&#287;an</dc:creator>
				<category><![CDATA[jQuery Tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css jquery]]></category>
		<category><![CDATA[examples]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image captions]]></category>
		<category><![CDATA[image css]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jquery examples]]></category>

		<guid isPermaLink="false">http://jqueryblog.net/?p=64</guid>
		<description><![CDATA[This script have very simple usage;
Usage
Script:
$(document).ready(function(){
	$('img.captioned').each(
		function() {
			var caption = $(this).attr('title');
			$(this)
				.wrap('&#60;div class=&#34;imgcontainer&#34;&#62;&#60;/div&#62;')
				.after('&#60;div class=&#34;caption&#34;&#62;'+caption+'&#60;/div&#62;');
		}
	);
});
CSS:
.imgcontainer {
	position:relative;
	float:left;
	}
.caption {
	position:absolute;
	bottom:0;
	left:0;
	text-align:center;
	background:#fff;
	width:100%;
	opacity:.75;
	filter:alpha(opacity=85);
	color:#000;
	}
.imgcontainer img {display:block;}
HTML:
&#60;img src=&#34;images/news1.jpg&#34; class=&#34;captioned&#34; alt=&#34;&#34; title=&#34;jQuery blog News#1&#34; /&#62;
&#60;img src=&#34;images/news2.jpg&#34; class=&#34;captioned&#34; alt=&#34;&#34; title=&#34;jQuery blog News#2&#34; /&#62;
Demo
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjqueryblog.net%2F2009%2F11%2Fimage-captions-generated-with-css-and-jquery%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjqueryblog.net%2F2009%2F11%2Fimage-captions-generated-with-css-and-jquery%2F" height="61" width="51" /></a></div><p>This script have very simple usage;</p>
<p><strong>Usage</strong><br />
<em>Script:</em></p>
<pre class="brush: jscript;">$(document).ready(function(){
	$('img.captioned').each(
		function() {
			var caption = $(this).attr('title');
			$(this)
				.wrap('&lt;div class=&quot;imgcontainer&quot;&gt;&lt;/div&gt;')
				.after('&lt;div class=&quot;caption&quot;&gt;'+caption+'&lt;/div&gt;');
		}
	);
});</pre>
<p><em>CSS:</em></p>
<pre class="brush: css;">.imgcontainer {
	position:relative;
	float:left;
	}
.caption {
	position:absolute;
	bottom:0;
	left:0;
	text-align:center;
	background:#fff;
	width:100%;
	opacity:.75;
	filter:alpha(opacity=85);
	color:#000;
	}
.imgcontainer img {display:block;}</pre>
<p><em>HTML:</em></p>
<pre class="brush: xml;">&lt;img src=&quot;images/news1.jpg&quot; class=&quot;captioned&quot; alt=&quot;&quot; title=&quot;jQuery blog News#1&quot; /&gt;
&lt;img src=&quot;images/news2.jpg&quot; class=&quot;captioned&quot; alt=&quot;&quot; title=&quot;jQuery blog News#2&quot; /&gt;</pre>
<p><a href="http://www.askthecssguy.com/examples/examplesUsingjQuery/imageCaptions.html" target="_blank">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jqueryblog.net/2009/11/image-captions-generated-with-css-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
