<?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>CKnol.Com &#187; Website</title>
	<atom:link href="http://www.cknol.com/category/website/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cknol.com</link>
	<description>The Center of Knowledges</description>
	<lastBuildDate>Mon, 26 Dec 2011 15:13:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using CSS to Makes Transparent Element in Mozilla</title>
		<link>http://www.cknol.com/website/using-css-to-makes-transparent-element-in-mozilla.html</link>
		<comments>http://www.cknol.com/website/using-css-to-makes-transparent-element-in-mozilla.html#comments</comments>
		<pubDate>Tue, 18 Dec 2007 17:50:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Website]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla]]></category>

	<!-- AutoMeta Start -->
	<category>blog</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.cknol.com/?p=42</guid>
		<description><![CDATA[Let us play with Mozilla’s CSS again. Now we will 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 [...]]]></description>
			<content:encoded><![CDATA[<p>Let us play with Mozilla’s CSS again. Now we will 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 the element is 50% transparent.</p>
<p><span id="more-42"></span></p>
<p>Watch the sample below:</p>
<div id="attachment_43" class="wp-caption aligncenter" style="width: 112px"><a href="http://www.cknol.com/wp-content/uploads/2008/12/transparent-element.gif"><img class="size-thumbnail wp-image-43" title="transparent-element" src="http://www.cknol.com/wp-content/uploads/2008/12/transparent-element.gif" alt="Transparent Element" width="102" height="102" /></a><p class="wp-caption-text">Transparent Element</p></div>
<p>All of the 4 boxes actually have the same color, red. What make each looks different is the -moz-opacity setting. Box number 1 has 25% opacity (0.25), box number 2 has 50% opacity (0.5), box number 3 has 75% opacity (0.75), and the last box number 4 has 100% opacity (1).</p>
<p>Here is the code:</p>
<p><code>[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 />
}</code></p>
<p><code>.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 />
}</code></p>
<p><code>.box1 {<br />
-moz-opacity: 0.25;<br />
opacity: 0.25;<br />
}</code></p>
<p><code>.box2 {<br />
-moz-opacity: 0.5;<br />
opacity: 0.5;<br />
}</code></p>
<p><code>.box3 {<br />
-moz-opacity: 0.75;<br />
opacity: 0.75;<br />
}</code></p>
<p><code>.box4 {<br />
-moz-opacity: 1;<br />
opacity: 1;<br />
}[/css]</code></p>
<p><code>[html]<br />
1<br />
2<br />
3<br />
4<br />
[/html]</code></p>
<p>Try to combine this with element who has background image and you will 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.</p>
<p>Don’t forget. This is Mozilla/Firefox spesific CSS. Sorry to IE users, get FireFox please.</p>
<p>Good luck!</p>
<img src="http://www.cknol.com/?ak_action=api_record_view&id=42&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.cknol.com/website/using-css-to-makes-transparent-element-in-mozilla.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Changing The Style of Highlighted Text in Mozilla</title>
		<link>http://www.cknol.com/website/changing-the-style-of-highlighted-text-in-mozilla.html</link>
		<comments>http://www.cknol.com/website/changing-the-style-of-highlighted-text-in-mozilla.html#comments</comments>
		<pubDate>Mon, 17 Dec 2007 16:16:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Website]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mozilla]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.cknol.com/?p=38</guid>
		<description><![CDATA[There are several interesting style on Mozilla’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 the sample of code below: [css]::-moz-selection{ background-color: #ff0000; color: #fff; }[/css] now when user selected or highlighted any text, the background color will change [...]]]></description>
			<content:encoded><![CDATA[<p>There are several interesting style on Mozilla’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.</p>
<p>Look the sample of code below:</p>
<p><span id="more-38"></span></p>
<p><code>[css]::-moz-selection{<br />
background-color: #ff0000;<br />
color: #fff;<br />
}[/css]</code></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.</p>
<p>Do not forget that this is Mozilla’s specific CSS, so it won’t work on Internet Explorer. I hope this property will be included on CSS3 specification draft so more browser will support it.</p>
<img src="http://www.cknol.com/?ak_action=api_record_view&id=38&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.cknol.com/website/changing-the-style-of-highlighted-text-in-mozilla.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

