<?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>ChilisApps &#187; CSS</title>
	<atom:link href="https://www.chilisapps.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.chilisapps.com</link>
	<description>Awesome Apps</description>
	<lastBuildDate>Wed, 12 Jul 2017 06:35:54 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>RGBa colors in CSS</title>
		<link>https://www.chilisapps.com/blog/2012/11/25/rgba-colors-in-css/</link>
		<comments>https://www.chilisapps.com/blog/2012/11/25/rgba-colors-in-css/#comments</comments>
		<pubDate>Sun, 25 Nov 2012 05:57:08 +0000</pubDate>
		<dc:creator><![CDATA[Ben]]></dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.chilisapps.com/?p=468</guid>
		<description><![CDATA[Super easy and super useful. We&#8217;re talking about RGBa color values in CSS. They give you the ability to create great designs without having to use images. Instead of specifying color values in hex we can use the RGB value and also specify an alpha channel value. An example of the RGBa syntax is as<p><a href="https://www.chilisapps.com/blog/2012/11/25/rgba-colors-in-css/">Continue Reading &#8594;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Super easy and super useful. We&#8217;re talking about RGBa color values in CSS. They give you the ability to create great designs without having to use images. Instead of specifying color values in hex we can use the RGB value and also specify an alpha channel value.</p>
<p>An example of the RGBa syntax is as follows:</p>
<pre class="brush: css; title: ; notranslate">
.modal_background {
    background: rgba(0, 0, 0, 0.5);
}
</pre>
<p>The first three values are the colors and the last is the alpha value. Its on a scale of 0-1 and accepts decimals such as 0.5 or 0.55.</p>
<p><strong>Browser Support:</strong></p>
<p>Blackberry: BBOS 6+<br />
Android: 2.1 +<br />
iOS: 3.2 +<br />
IE: 9+<br />
Other Desktop: Everything</p>
<p>As you can see almost any current browser with the exception of IE supports RGBa color values. This means we can use them without worrying about compatibility.</p>
<p>Here&#8217;s a little preview of some of the things you can do!</p>
<div>
<div style="border-radius: 10px; position: relative; width: 100px; height: 100px; background-color: rgba(0,0,0,0.75); color: #fff; text-align: center; vertical-align: middle;">Dark</div>
<div style="border-radius: 10px; position: relative; top: -40px; left: 50px; width: 100px; height: 100px; background-color: rgba(0,0,0,0.5); color: #fff; text-align: center; vertical-align: middle;">
<p>Lighter</p>
</div>
<div style="border-radius: 10px; position: relative; top: -80px; left: 100px; width: 100px; height: 100px; background-color: rgba(0,0,0,0.25); color: #fff; text-align: center; vertical-align: middle;">
<p>Even Lighter</p>
<p style="text-align: left;">
</div>
</div>
<p>Heres the code for the examples above:</p>
<pre class="brush: css; title: ; notranslate">
.dark{
    background: rgba(0, 0, 0, 0.75);
}
.lighter{
    background: rgba(0, 0, 0, 0.5);
}
. lighest {
    background: rgba(0, 0, 0, 0.25);
}
</pre>
<p>Add a comment if you have questions!</p>
]]></content:encoded>
			<wfw:commentRss>https://www.chilisapps.com/blog/2012/11/25/rgba-colors-in-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.chilisapps.com @ 2026-04-27 13:05:57 by W3 Total Cache -->