<?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>Daily Gadgets, Computer, and Electronics News &#187; css</title>
	<atom:link href="http://www.funponsel.com/blog/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.funponsel.com/blog</link>
	<description>Daily Gadgets, Computer, and Electronics News</description>
	<lastBuildDate>Sun, 22 Nov 2009 19:08:13 +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>Ten More CSS Tricks You May Not Know</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/ten-more-css-tricks-you-may-not-know.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/ten-more-css-tricks-you-may-not-know.html#comments</comments>
		<pubDate>Wed, 07 Sep 2005 23:00:58 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/archives/2005/09/08/ten-more-css-tricks-you-may-not-know/</guid>
		<description><![CDATA[Three month ago, I posted a link to a very good article about CSS, &#8220;Ten CSS Tricks You May Not Know&#8220;. This article covers ten interesting CSS tricks that most web designer should know. Last week, Trenton Moss, the author of the article, published the sequel, &#8220;Ten More CSS Tricks You May Now Know&#8220;.
As the [...]]]></description>
			<content:encoded><![CDATA[<p>Three month ago, I posted a link to a very good article about CSS, &#8220;<a href="http://www.funponsel.com/blog/archives/2005/06/09/ten-css-tricks-you-may-not-know/">Ten CSS Tricks You May Not Know</a>&#8220;. This article covers ten interesting CSS tricks that most web designer should know. Last week, Trenton Moss, the author of the article, published the sequel, &#8220;<a href="http://www.webcredible.co.uk/user-friendly-resources/css/more-css-tricks.shtml">Ten More CSS Tricks You May Now Know</a>&#8220;.</p>
<p>As the title said, this article gives you ten more handy CSS tricks. For myself, I found out that the <acronym title="Minimum width for a page">3rd</acronym> and the <acronym title="IE and width &#038; height issues">4th</acronym> tricks are quite useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/ten-more-css-tricks-you-may-not-know.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>AdSense Font Style</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/adsense-font-style.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/adsense-font-style.html#comments</comments>
		<pubDate>Wed, 24 Aug 2005 16:37:20 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Online Revenue]]></category>
		<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[web_design]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=448</guid>
		<description><![CDATA[I&#8217;m sure most of you already know about this, so I guess I dedicated this post to anyone who fairly new to Google AdSense :p 
If you really want to make AdSense ads blended more with your site / blog, why don&#8217;t you change your site&#8217;s font style to match AdSense font style? No guarantee [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://www.funponsel.net/images//google_sm.gif" width="143" height="59" alt="Google AdSense" title="Google AdSense" />I&#8217;m sure most of you already know about this, so I guess I dedicated this post to anyone who fairly new to <a href="http://www.google.com/adsense">Google AdSense</a> :p </p>
<p>If you really want to make AdSense ads blended more with your site / blog, why don&#8217;t you change your site&#8217;s font style to match AdSense font style? No guarantee that this will bring more CTR, though. But for myself, I&#8217;m using this AdSense font style to create my own alternate ads (PSA&#8217;s replacement). See screenshot below.</p>
<p><span id="more-448"></span><img src="http://www.funponsel.net/images//myalt.jpg" width="314" height="247" alt="My Own AdSense Alternate Ads" title="My Own AdSense Alternate Ads" /></p>
<p>Looks good, doesn&#8217;t it? And the result is almost the same as the real AdSense ads. So eventhough there&#8217;s no AdSense ads, it won&#8217;t display PSA, instead, it will display my own ads that looks like AdSense ads. Want the code for this alternate ads? <a href="http://www.funponsel.com/blog/contact/">Contact me</a> <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Now back to our topic. Here&#8217;s the font style for AdSense ads:</p>
<p><strong>Title text:</strong></p>
<p><code>font: bold 11px arial, sans-serif;<br />
text-decoration:underline;<br />
color:#000000;</code></p>
<p><strong>Description text:</strong></p>
<p><code>font: normal 11px/14px arial, sans-serif;<br />
text-decoration:none;<br />
color:#000000;</code></p>
<p><strong>URL text:</strong></p>
<p><code>font: normal 11px arial, sans-serif;<br />
text-decoration:none;<br />
color:#000000;</code></p>
<p><strong>Google own ads text:</strong></p>
<p><code>font: normal 11px arial, sans-serif;<br />
text-decoration:underline;<br />
color:#000000;</code></p>
<p>You can change the color for Title, Description, and URL text to match your AdSense ads color scheme. For Google own ads, the color is the background color of your ads. Usually, people use the Title style as their <strong>h3 tag</strong> style, and the Description style as their <strong>P tag</strong> style. Well, it&#8217;s all your choice now :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/adsense-font-style.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Combine Photoshop and CSS to Make a Great Website</title>
		<link>http://www.funponsel.com/blog/article/how-to-combine-photoshop-and-css-to-make-a-great-website.html</link>
		<comments>http://www.funponsel.com/blog/article/how-to-combine-photoshop-and-css-to-make-a-great-website.html#comments</comments>
		<pubDate>Thu, 11 Aug 2005 01:34:32 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web_design]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/archives/2005/08/11/how-to-combine-photoshop-and-css-to-make-a-great-website/</guid>
		<description><![CDATA[A very good article from SitePoint which will teach you how to create a CSS-based web page from the scratch, starting from a blank Photoshop canvas. The article is written by Corrie Haffly, a lead designer and developer for PixelMill.

Get Cooking with Photoshop and CSS &#8211; 3 Low-fat Recipes
Are you a CSS guru&#8230; but a [...]]]></description>
			<content:encoded><![CDATA[<p>A very good <a href="http://www.sitepoint.com/article/get-cooking-photoshop-css">article</a> from <a href="http://www.sitepoint.com/">SitePoint</a> which will teach you how to create a <acronym title="Cascade Style-Sheet">CSS</acronym>-based web page from the scratch, starting from a blank Photoshop canvas. The article is written by <a href="http://www.sitepoint.com/authorcontact/373/1485">Corrie Haffly</a>, a lead designer and developer for <a href="http://www.pixelmill.com/">PixelMill</a>.</p>
<p><span id="more-342"></span><br />
<blockquote>Get Cooking with Photoshop and CSS &#8211; 3 Low-fat Recipes</p>
<p>Are you a <acronym title="Cascade Style-Sheet">CSS</acronym> guru&#8230; but a layout and graphics newbie? Or are you a whiz at making great Websites using tables, but feel lost with this whole <acronym title="Cascade Style-Sheet">CSS</acronym> thing? Perhaps you&#8217;re a little bit of bothâ€¦ or are trying to be! You may have gone through lots of Photoshop or Fireworks tutorials, and pored over even more <acronym title="Cascade Style-Sheet">CSS</acronym> tutorials, but how do you combine great graphics, layouts, and <acronym title="Cascade Style-Sheet">CSS</acronym> to produce an outstanding Website?</p></blockquote>
<p>[ <a href="http://www.sitepoint.com/article/get-cooking-photoshop-css">Read Article</a> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/article/how-to-combine-photoshop-and-css-to-make-a-great-website.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Firefox Glitch</title>
		<link>http://www.funponsel.com/blog/internet/firefox-glitch.html</link>
		<comments>http://www.funponsel.com/blog/internet/firefox-glitch.html#comments</comments>
		<pubDate>Tue, 09 Aug 2005 14:38:29 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=321</guid>
		<description><![CDATA[Found this weird behaviour today when I was going to add a link using WordPress Links Manager. A problem with Firefox&#8217;es or Mozilla&#8217;s CSS?

]]></description>
			<content:encoded><![CDATA[<p>Found this weird behaviour today when I was going to add a link using WordPress Links Manager. A problem with Firefox&#8217;es or Mozilla&#8217;s CSS?</p>
<p><img src="http://www.funponsel.net/images//ffg.jpg" width="308" height="96" alt="Firefox Glitch?" title="Firefox Glitch?" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/internet/firefox-glitch.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ten CSS Tricks You May Not Know</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/ten-css-tricks-you-may-not-know.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/ten-css-tricks-you-may-not-know.html#comments</comments>
		<pubDate>Thu, 09 Jun 2005 16:32:11 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/archives/2005/06/09/ten-css-tricks-you-may-not-know/</guid>
		<description><![CDATA[Out of these 10 CSS tricks, I only didn&#8217;t know about #7. How many did you already know?
Oh, you don&#8217;t know what CSS is? The complete CSS tutorial might give you a helping tutorial about CSS.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webcredible.co.uk/user-friendly-resources/css/css-tricks.shtml">Out of these 10 CSS tricks</a>, I only didn&#8217;t know about #7. How many did you already know?</p>
<p>Oh, you don&#8217;t know what CSS is? <a href="http://www.echoecho.com/css.htm">The complete CSS tutorial</a> might give you a helping tutorial about CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/ten-css-tricks-you-may-not-know.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating FireFox-styled Status Line with CSS</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/creating-firefox-styled-status-line-with-css.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/creating-firefox-styled-status-line-with-css.html#comments</comments>
		<pubDate>Wed, 01 Jun 2005 00:37:17 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=198</guid>
		<description><![CDATA[If you&#8217;re using FireFox, sometimes you&#8217;ll see a status message on the top of your currently opened page. That&#8217;s the status line. It contains important message related to the current browsing progress, for example, when a certain plugins is required and you don&#8217;t have it installed, or when a pop-up window is blocked automatically, or [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using <a href="http://www.mozilla.org/products/firefox/">FireFox</a>, sometimes you&#8217;ll see a status message on the top of your currently opened page. That&#8217;s the status line. It contains important message related to the current browsing progress, for example, when a certain plugins is required and you don&#8217;t have it installed, or when a pop-up window is blocked automatically, or when the page trying to install something. In the right part of the status line, there&#8217;s a close button image, and when you click on it, the status line is gone. Cool, isn&#8217;t it? Now, let&#8217;s try to create the same status line effect in our website using CSS and JavaScript DOM.<br />
<span id="more-198"></span></p>
<ol>
<li>First off, add the following CSS code inside your document HEAD section (between &lt;HEAD&gt; and &lt;/HEAD&gt; tag)<br />
[css]<br />
<style type="text/css">
<p>	body {
		margin: 0;
		padding: 35px 5px 5px 5px;
	}</p>
<p>	.statusLine {
		padding: 5px 5px 5px 15px;
		background-color: #ccc;</p>
<p>		margin: 0;
		border-bottom:1px solid #333333;
		width: 100%;
		left: 0px;
		top: 0px;
		position: absolute;
		font-family: sans-serif;
		font-size: 0.8em;
	}</p>
<p>	.statusImg {
		float: right;
		padding-right: 20px;
		vertical-align: middle;
		display:inline;
		cursor:pointer;
	}
</style>
<p>[/css]</li>
<li>Below the above code, add the following JavaScript (still inside the HEAD section)<br />
[js]<script language="javascript" type="text/javascript"></p>
<p>	function hideStatus() {
		document.getElementById('statusLine').style.display='none';	
		document.body.style.padding = '5px';
	}</p>
<p></script>[/js]</li>
<li>Download this image and put it on your server.<br />
<img src="http://www.funponsel.net/images//ff_close.jpg" width="16" height="17" alt="Close Button" title="Close Button" /> (right click and choose &#8220;Save As&#8221;)</li>
<li>Now we&#8217;re ready <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) If you want to display the status line, just add the following HTML code:<br />
[html]
<div id='statusLine' class="statusLine">
		<img class="statusImg" src="ff_close.jpg" onClick="hideStatus();" />Put your message here
</div>
<p>[/html]<br />
It doesn&#8217;t matter where you put these code, it will automatically shifted into the top of the page.</li>
</ol>
<p>The explanation is quite simple. We displayed the status line inside the DIV section where this DIV is positioned on the top left of the page (left: 0px and top: 0px) and full width (width: 100%). We also prepare a style-class for the close button image to float it on the right-side of the status line. With the JavaScript function, we handle the mouse click event by hiding the status line and restoring the document&#8217;s BODY padding style.</p>
<p>The sample result is below:<br />
<img src="http://www.funponsel.net/images//ff_status.jpg" width="512" height="23" alt="Our Status Line" title="Our Status Line" /></p>
<p>Have fun with CSS <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/creating-firefox-styled-status-line-with-css.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>X-Ray Effect using CSS</title>
		<link>http://www.funponsel.com/blog/funny-and-weird/x-ray-effect-using-css.html</link>
		<comments>http://www.funponsel.com/blog/funny-and-weird/x-ray-effect-using-css.html#comments</comments>
		<pubDate>Mon, 30 May 2005 14:58:36 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Funny & Weird]]></category>
		<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Funny-&-Weird]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[photoshop-x-ray]]></category>
		<category><![CDATA[Web-&-Graphic-Design]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/archives/2005/05/30/x-ray-effect-using-css/</guid>
		<description><![CDATA[Via Digg. Yet another Mozilla&#8217;s CSS magic. This one create an x-ray effect of a woman body. Still not convinced enough to throw away IE?
]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://digg.com/design/CSS_X-Ray_Effect_%7C_Firefox_Only_">Digg</a>. Yet another <a href="http://www.mozilla.org/">Mozilla</a>&#8217;s CSS magic. This one <a href="http://biocandy.dk/test.html">create an x-ray effect</a> of a woman body. Still <a href="http://browsehappy.com/">not convinced enough</a> to throw away IE?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/funny-and-weird/x-ray-effect-using-css.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fading Element Effect using CSS</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/fading-element-effect-using-css.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/fading-element-effect-using-css.html#comments</comments>
		<pubDate>Thu, 19 May 2005 03:03:17 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=166</guid>
		<description><![CDATA[
In the previous CSS article, we set up a transparent element using CSS through -moz-opacity property (Mozilla&#8217;s specific) and opacity property (CSS3). Now let&#8217;s try to move another step ahead and learn how to create a cool fade in/out effect using opacity property.

We won&#8217;t use -moz-opacity property in this article since the latest version of [...]]]></description>
			<content:encoded><![CDATA[<p><script language="javascript" type="text/javascript" src="http://www.funponsel.com/blog/fade.js"></script><br />
In the <a href="http://www.funponsel.com/blog/archives/2005/05/16/transparent-element-using-css/">previous CSS article</a>, we set up a transparent element using CSS through <strong>-moz-opacity</strong> property (Mozilla&#8217;s specific) and <strong>opacity</strong> property (CSS3). Now let&#8217;s try to move another step ahead and learn how to create a cool fade in/out effect using <strong>opacity</strong> property.<br />
<span id="more-166"></span></p>
<div class="note">We won&#8217;t use <strong>-moz-opacity</strong> property in this article since the latest version of <a href="http://www.mozilla.org/products/firefox/">Firefox</a> (v1.0.4) seems already support <strong>opacity</strong> property, just like <a href="http://www.mozilla.org/">Mozila</a>. So only <strong>opacity</strong> property will be used.</div>
<p>To create a fading effect, we will need a little help from JavaScript. We&#8217;ll use JS&#8217; <strong>setTimeout() </strong>function and <strong>clearTimeout()</strong> function to perform the fade animation. All we need to do, in each &#8216;<em>animation</em>&#8216; sequence, we either increase (<em>fade-in</em>) or decrease (<em>fade-out</em>) the element&#8217;s (image) opacity value until we hit 1 (<em>fade-in</em>) or 0 (<em>fade-out</em>). Each animation is processed through fadeIn() and fadeOut() function (source code below), and the <strong>setTimeout()</strong> function is used to set when the next fadeIn/fadeOut function will be called. So when those functions is called multiple times sequently, we&#8217;ll obtain the fading effect.</p>
<p>Before we get to the source code, let&#8217;s see how the effect will looks like:</p>
<p><strong>Fade Out</strong></p>
<div style="border:1px solid #000;width:48px;height:48px;">
<div id="gambarOut" style="background:transparent url(http://www.funponsel.net/images/naruto01.jpg) no-repeat;width:48px;height:48px;-moz-opacity:1;opacity:1;text-align:center;" onmouseover="fadeOut('gambarOut',10,50);" onmouseout="clearTimeout(fadeOutObj);this.style.opacity=1;">&nbsp;</div>
</div>
<p><strong>Fade In</strong></p>
<div style="border:1px solid #000;width:48px;height:48px;">
<div id="gambarIn" style="background:transparent url(http://www.funponsel.net/images/naruto01.jpg) no-repeat;width:48px;height:48px;-moz-opacity:0;opacity:0;text-align:center;" onmouseover="fadeIn('gambarIn',10,50);" onmouseout="clearTimeout(fadeInObj);this.style.opacity=0;">&nbsp;</div>
</div>
<p>Move your mouse over the box and the fade effect will begin. To stop or to restore the box to its original condition, mouse your omouse away from the box.</p>
<p>Here&#8217;s the source code for the JavaScript portion (copy-paste and save it as <strong>fade.js</strong>)</p>
<p>[js]var fadeInObj = null;<br />
var fadeOutObj = null;</p>
<p>function fadeIn(obyek,step,delay) {<br />
	clearTimeout(fadeOutObj);<br />
	var opacity = document.getElementById(obyek).style.opacity;<br />
	opacity = opacity * 100;<br />
	opacity = opacity + step;<br />
	if (opacity > 100) {<br />
		opacity = 100;<br />
	}<br />
	document.getElementById(obyek).style.opacity = opacity / 100;<br />
	if (opacity < 100) {<br />
		fadeInObj = setTimeout('fadeIn("' + obyek + '",' + step + ',' + delay + ');',delay);<br />
	} else {<br />
		clearTimeout(fadeInObj);<br />
	}<br />
}</p>
<p>function fadeOut(obyek,step,delay) {<br />
	clearTimeout(fadeInObj);<br />
	var opacity = document.getElementById(obyek).style.opacity;<br />
	opacity = opacity * 100;<br />
	opacity = opacity - step;<br />
	if (opacity < 0) {<br />
		opacity = 0;<br />
	}<br />
	document.getElementById(obyek).style.opacity = opacity / 100;<br />
	if (opacity > 0) {<br />
		fadeOutObj = setTimeout(&#8217;fadeOut(&#8221;&#8216; + obyek + &#8216;&#8221;,&#8217; + step + &#8216;,&#8217; + delay + &#8216;);&#8217;,delay);<br />
	} else {<br />
		clearTimeout(fadeOutObj);<br />
	}<br />
}[/js]</p>
<p>and this is the HTML portion for the sample above:<br />
[html]<script language="javascript" type="text/javascript" src="http://www.funponsel.com/blog/fade.js"></script></p>
<div style="border:1px solid #000; width:48px; height:48px; ">
<div id="gambarOut" style="background:transparent url(http://www.funponsel.net/images/naruto01.jpg) no-repeat; width:48px; height:48px; -moz-opacity:1; opacity:1; text-align:center; " onmouseover="fadeOut('gambarOut',10,50); " onmouseout="clearTimeout(fadeOutObj); this.style.opacity=1; ">&nbsp; </div>
</div>
<div style="border:1px solid #000; width:48px; height:48px; ">
<div id="gambarIn" style="background:transparent url(http://www.funponsel.net/images/naruto01.jpg) no-repeat; width:48px; height:48px; -moz-opacity:0; opacity:0; text-align:center; " onmouseover="fadeIn('gambarIn',10,50); " onmouseout="clearTimeout(fadeInObj); this.style.opacity=0; ">&nbsp; </div>
</div>
<p>[/html]</p>
<div class="note">To stop the animation, we call the JS&#8217; <strong>clearTimeout()</strong> function. However, this function need to know which timeout object should be stop. So we declare the object everytime we call the <strong>setTimeout()</strong> function, and then pass this object as parameter for the <strong>clearTimeout()</strong> function (<em>fadeInObj</em> is the object for fade-in effect and <em>fadeOutObj</em> is for the fade-out).</div>
<p>Have fun! :d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/fading-element-effect-using-css.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Transparent Element using CSS</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/transparent-element-using-css.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/transparent-element-using-css.html#comments</comments>
		<pubDate>Mon, 16 May 2005 07:22:57 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=158</guid>
		<description><![CDATA[Let&#8217;s play with Mozilla&#8217;s CSS again. Now we&#8217;ll try to make a cool transparent element with -moz-opacity property. This property is also available in CSS3 specification with the name opacity. Using this property, you can control how solid your element is. The value is ranged from 0 (full-transparent) to 1 (solid). So, 0.5 value means [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s play with Mozilla&#8217;s CSS again. Now we&#8217;ll try to make a cool transparent element with <strong>-moz-opacity</strong> property. This property is also available in CSS3 specification with the name <strong>opacity</strong>. Using this property, you can control how solid your element is. The value is ranged from 0 (full-transparent) to 1 (solid). So, 0.5 value means the element is 50% transparent.<br />
<span id="more-158"></span><br />
Watch the sample below:</p>
<div style="background-color:black;width:100px;height:100px;border:1px solid #000;margin:0 5px 10px 0;padding:0;float:left;display:block;">
<div style="background-color:red;width:50px;height:50px;border:0;margin:0;padding:0;-moz-opacity:0.25;opacity:0.25;float:left;text-align:center;vertical-align:middle;color:white;">1</div>
<div style="background-color:red;width:50px;height:50px;border:0;margin:0;padding:0;-moz-opacity:0.5;opacity:0.5;float:left;text-align:center;vertical-align:middle;color:white;">2</div>
<div style="background-color:red;width:50px;height:50px;border:0;margin:0;padding:0;-moz-opacity:0.75;opacity:0.75;float:left;text-align:center;vertical-align:middle;color:white;">3</div>
<div style="background-color:red;width:50px;height:50px;border:0;margin:0;padding:0;-moz-opacity:1;opacity:1;float:left;text-align:center;vertical-align:middle;color:white;">4</div>
</div>
<p>All of the 4 boxes actually have the same color, <span style="color:red;">red</span>. What make each looks different is the -moz-opacity setting. Box #1 has 25% opacity (0.25), box #2 has 50% opacity (0.5), box #3 has 75% opacity (0.75), and the last box #4 has 100% opacity (1). <br style="clear:both;"/></p>
<p>Here&#8217;s the code:<br />
[css].bigBox {<br />
	background-color: black;<br />
	width: 100px;<br />
	height: 100px;<br />
	border: 1px solid #000;<br />
	margin: 0 5px 10px 0;<br />
	padding: 0;<br />
	float: left;<br />
	display: block;<br />
}</p>
<p>.box1, .box2, .box3, .box4 {<br />
	background-color: red;<br />
	width: 50px;<br />
	height: 50px;<br />
	border: 0;<br />
	margin: 0;<br />
	padding: 0;<br />
	float: left;<br />
	text-align: center;<br />
	color: white;<br />
}</p>
<p>.box1 {<br />
	-moz-opacity: 0.25;<br />
	opacity: 0.25;<br />
}</p>
<p>.box2 {<br />
	-moz-opacity: 0.5;<br />
	opacity: 0.5;<br />
}</p>
<p>.box3 {<br />
	-moz-opacity: 0.75;<br />
	opacity: 0.75;<br />
}</p>
<p>.box4 {<br />
	-moz-opacity: 1;<br />
	opacity: 1;<br />
}[/css]</p>
<p></p>
<p>[html]
<div class="bigBox">
<div class="box1">1</div>
<div class="box2">2</div>
<div class="box3">3</div>
<div class="box4">4</div>
</div>
<p>[/html]</p>
<p>Try to combine this with element who has background image and you&#8217;ll surely get a nice effect. Hover will look good too. I already implement this in my comment list element. If you want to see it, just find any post in my blog that has lot of comments, and check out the comment box <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<div class="note">Don&#8217;t forget. This is Mozilla/Firefox spesific CSS. Sorry to IE users &#8211; get FireFox please <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</div>
<p>Good luck :d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/transparent-element-using-css.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use CSS to Change Highlighted Text Style</title>
		<link>http://www.funponsel.com/blog/web-and-graphic-design/use-css-to-change-highlighted-text-style.html</link>
		<comments>http://www.funponsel.com/blog/web-and-graphic-design/use-css-to-change-highlighted-text-style.html#comments</comments>
		<pubDate>Sat, 14 May 2005 13:13:09 +0000</pubDate>
		<dc:creator>cosa</dc:creator>
				<category><![CDATA[Web & Graphic Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.funponsel.com/blog/?p=148</guid>
		<description><![CDATA[There are several interesting style on Mozilla&#8217;s specific CSS. One of the most interesting trick is changing the style of the text when user highlighted the text using -moz-selection property. Look below:
[css]::-moz-selection{
       background-color: #ff0000;
       color: #fff;
}[/css]
now when user selected or highlighted any text, [...]]]></description>
			<content:encoded><![CDATA[<p>There are several interesting style on <a href="http://www.mozilla.org">Mozilla</a>&#8217;s specific <a href="http://www.w3.org/Style/CSS/">CSS</a>. One of the most interesting trick is changing the style of the text when user highlighted the text using <strong>-moz-selection</strong> property. Look below:</p>
<p>[css]::-moz-selection{<br />
       background-color: #ff0000;<br />
       color: #fff;<br />
}[/css]</p>
<p>now when user selected or highlighted any text, the background color will change to red (#ff0000) and the text color is white (#fff). I used that style on this site so simply highlighted any text here and see the result <img src='http://www.funponsel.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<div class="note">Don&#8217;t forget that this is Mozilla&#8217;s specific CSS, so it won&#8217;t work on Internet Explorer. I hope this property will be included on CSS3 specification draft so more browser will support it.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.funponsel.com/blog/web-and-graphic-design/use-css-to-change-highlighted-text-style.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
