<?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>ZENVERSE &#187; searchbox</title>
	<atom:link href="http://zenverse.net/tag/searchbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:01:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create a Fancy Search Box using CSS</title>
		<link>http://zenverse.net/create-a-fancy-search-box-using-css/</link>
		<comments>http://zenverse.net/create-a-fancy-search-box-using-css/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 09:14:39 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Design Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fancy]]></category>
		<category><![CDATA[photoshop tutorial]]></category>
		<category><![CDATA[searchbox]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=100</guid>
		<description><![CDATA[Nowadays, most websites come with a search box to improve surfing experience. To make your website looks good, beside having a nice looking theme, you would need a fancy search box to replace the classic ones.]]></description>
			<content:encoded><![CDATA[<p>Nowadays, most websites come with a search box to improve surfing experience. To make your website looks good, beside having a nice looking theme, you would need a fancy search box to replace the classic ones.</p>
<h3>Let&#8217;s start</h3>
<h4>1. Design your own search box</h4>
<p><img src="http://img196.imageshack.us/img196/5701/searchbox.jpg" alt="" /><br />
In this example, I will use this as my search box.</p>
<h4>2. Crop it out</h4>
<p>Make sure the background color outside the search box is the same as your design. Now crop the <strong>whole</strong> search box out.</p>
<p>result: <img src="http://img196.imageshack.us/img196/5701/searchbox.jpg" alt="" /></p>
<h4>3. Create a blank image as submit button</h4>
<p><img src="http://img196.imageshack.us/img196/690/10017207.jpg" alt="" /><br />
The picture above explained all.</p>
<h4>4. HTML codes for the search box</h4>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p100code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1001"><td class="code" id="p100code1"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;searchwrapper&quot;&gt;&lt;form action=&quot;&quot;&gt;
&lt;input type=&quot;text&quot; class=&quot;searchbox&quot; name=&quot;s&quot; value=&quot;&quot; /&gt;
&lt;input type=&quot;image&quot; src=&quot;THE_BLANK_SUBMIT_BUTTON_IMAGE&quot; class=&quot;searchbox_submit&quot; value=&quot;&quot; /&gt;
&lt;/form&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>Replace the &#8220;THE_BLANK_SUBMIT_BUTTON_IMAGE&#8221; with the image at step 3.</p>
<h4>5. CSS codes for my search box</h4>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p100code2'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1002"><td class="code" id="p100code2"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#searchwrapper</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">310px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*follow your image's size*/</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*follow your image's size*/</span>
<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>THE_SEARCH_BOX_IMAGE<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span><span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#searchwrapper</span> form <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span> <span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.searchbox</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">256px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">28px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.searchbox_submit</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*important*/</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">265px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">28px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Basically what&#8217;s going on :<br />
<strong>#searchwrapper</strong> wrap the whole search box, carrying the whole search box image as its background image.<br />
<strong>.searchbox</strong> is the text area to enter search keyword, given a transparent background and no border.<br />
<strong>.searchbox_submit</strong> is the submit button, also given a transparent background and no border. </p>
<p><strong><em><u>NOTE:</u></em></strong><br />
Both <strong>.searchbox</strong> and <strong>.searchbox_submit</strong> have been given an absolute position, you should modify their position, width and height according to your own search box.</p>
<p><img src="http://img5.imageshack.us/img5/2875/unfftitled1.jpg" alt="" /></p>
<h3>That&#8217;s it.</h3>
<p>Feel free to reply here <img src='http://zenverse.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/create-a-fancy-search-box-using-css/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
