<?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; css</title>
	<atom:link href="http://zenverse.net/tag/css/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>Preload Multiple Images using CSS for Smooth &amp; Instant Rollover Effect</title>
		<link>http://zenverse.net/preload-multiple-images-using-css-for-rollover-hover/</link>
		<comments>http://zenverse.net/preload-multiple-images-using-css-for-rollover-hover/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 11:33:30 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[Design Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[preload]]></category>
		<category><![CDATA[rollover]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=304</guid>
		<description><![CDATA[To improve your website's design or user experience, you might need to preload some images for smooth hover or rollover. Instead of using javascript to preload the images, we can do that using CSS.]]></description>
			<content:encoded><![CDATA[<p>To improve your website&#8217;s design or user experience, you might need to preload some images for smooth hover or rollover. Instead of using javascript to preload the images, we can do that using CSS.</p>
<h4>1. A container that hold the images to be preloaded</h4>
<p>The HTML :</p>

<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('p304code1'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3041"><td class="code" id="p304code1"><pre class="html" style="font-family:monospace;">....
&lt;body&gt;
&lt;div class=&quot;preload&quot;&gt;
&lt;img src=&quot;IMAGE_TO_PRELOAD_1&quot; /&gt;
&lt;img src=&quot;IMAGE_TO_PRELOAD_2&quot; /&gt;
&lt;img src=&quot;IMAGE_TO_PRELOAD_3&quot; /&gt;
&lt;/div&gt;
...
...</pre></td></tr></table></div>

<p>The CSS:</p>

<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('p304code2'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3042"><td class="code" id="p304code2"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.preload</span> <span style="color: #00AA00;">&#123;</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: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong>EXPLAINATION</strong></p>
<ul>
<li>We place the container after &lt;body&gt; and assign an absolute position to it because usually there will not be anything at that position.</li>
<li>We make the container 1 pixel width and height so that visitors cannot see it. </li>
<li>Besides, we need to set its overflow to hidden so that the overflow wouldn&#8217;t be visible.</li>
<li>Lastly, change its visibility to hidden so that the container is invisible (but it is still there and most importantly it loads)</li>
</ul>
<p>&nbsp;</p>
<h4>2. Demo &#038; Rollover Code</h4>
<div style="position:absolute;top:0px;left:0px;width:1px;height:1px;visibility:hidden;overflow:hidden;">
<img src="http://zenverse.net/wp-content/uploads/2009/06/csshover_2.jpg" /></div>
<p>Demo:<br />
<img src="http://zenverse.net/wp-content/uploads/2009/06/csshover_1.jpg" onmouseout="this.src='http://zenverse.net/wp-content/uploads/2009/06/csshover_1.jpg'" onmouseover="this.src='http://zenverse.net/wp-content/uploads/2009/06/csshover_2.jpg'" /></p>
<p>The Code:</p>

<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('p304code3'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3043"><td class="code" id="p304code3"><pre class="html" style="font-family:monospace;">&lt;div style=&quot;position:absolute;top:0px;left:0px;width:1px;height:1px;visibility:hidden;overflow:hidden;&quot;&gt;
&lt;img src=&quot;http://zenverse.net/wp-content/uploads/2009/06/csshover_2.jpg&quot; /&gt;&lt;/div&gt;
&nbsp;
&lt;img src=&quot;http://zenverse.net/wp-content/uploads/2009/06/csshover_1.jpg&quot; onmouseout=&quot;this.src='http://zenverse.net/wp-content/uploads/2009/06/csshover_1.jpg'&quot; onmouseover=&quot;this.src='http://zenverse.net/wp-content/uploads/2009/06/csshover_2.jpg'&quot; /&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/preload-multiple-images-using-css-for-rollover-hover/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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('p100code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1004"><td class="code" id="p100code4"><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('p100code5'); return false;">View Code</a> CSS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1005"><td class="code" id="p100code5"><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>
