<?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>naioo.com - Design // Dev // Inspiration &#187; imageless</title>
	<atom:link href="http://naioo.com/blog/tag/imageless/feed/" rel="self" type="application/rss+xml" />
	<link>http://naioo.com/blog</link>
	<description>Design, Web- &#38; Application Development, Inspiration</description>
	<lastBuildDate>Mon, 30 Apr 2012 16:58:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CSS3 Buttons Without Any Images</title>
		<link>http://naioo.com/blog/css3-buttons-without-any-images/</link>
		<comments>http://naioo.com/blog/css3-buttons-without-any-images/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 10:03:56 +0000</pubDate>
		<dc:creator>Henning</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[imageless]]></category>

		<guid isPermaLink="false">http://naioo.com/blog/?p=82</guid>
		<description><![CDATA[In a previous post, I talked about creating dynamic and scaleable buttons using CSS3. While we can use &#8220;border-radius&#8221; for rounded corners and &#8220;box-shadow&#8221; for a nice dropshadow effect, there&#8217;s still a problem with giving the button a 3d / plastic look without using images. In my previous example I used a small PNG image (with [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous post, I talked about <a href="http://naioo.com/blog/creating-dynamic-buttons-with-css3/">creating dynamic and scaleable buttons using CSS3</a>. While we can use &#8220;<strong>border-radius</strong>&#8221; for rounded corners and &#8220;<strong>box-shadow</strong>&#8221; for a nice dropshadow effect, there&#8217;s still a problem with giving the button a 3d / plastic look without using images. In my previous example I used a small PNG image (with a gradient from white to transparent) as a background to achieve that effect.</p>
<p><img class="alignnone size-full wp-image-84" title="CSS Buttons Without Images" src="http://naioo.com/blog/wp-content/uploads/2010/02/css3-buttons-no-images.png" alt="CSS Buttons Without Images" width="558" height="186" /></p>
<p>Now, with the release of Firefox 3.6 (Safari / Webkit supported that a bit earlier) we don&#8217;t need any images at all, thanks to the &#8220;<strong>moz-linear-gradient</strong>&#8221; / &#8220;<strong>webkit-gradient</strong>&#8221; property.</p>
<p><span id="more-82"></span></p>
<p>In detail, the buttons use the same code <a href="http://naioo.com/blog/creating-dynamic-buttons-with-css3/">as the buttons from my last example.</a> The only thing we have to change is the background attribute. Instead of using an image, we now add a CSS generated gradient, that gives our button a more plastic look. This is done by using &#8220;<strong>moz-linear-gradient</strong>&#8221; respectively &#8220;<strong>webkit-gradient</strong>&#8221; for Webkit based browsers. For our buttons, it looks like this:</p>
<pre>background:-webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,1)),to(rgba(185,185,185,1)));
background:-moz-linear-gradient(top,rgba(255,255,255,1),rgba(185,185,185,1));</pre>
<p>This draws a linear gradient from white at the top to a light grey at the bottom. Instead of using the RGBa color values you could also use #Hex codes, as we don&#8217;t need any transparency here.</p>
<p><a href="http://files.naioo.com/imageless-css-buttons" target="_blank"><img class="alignnone size-full wp-image-86" title="CSS Buttons Without Images" src="http://naioo.com/blog/wp-content/uploads/2010/02/css3-buttons-no-images-example.png" alt="CSS Buttons Without Images" width="558" height="229" /></a></p>
<p>In addition to the previous example I also added an &#8220;active / focus&#8221; state to the CSS in order to make it feel more like a real button people are used to.</p>
<p><strong><a href="http://files.naioo.com/imageless-css-buttons" target="_blank">Click here to view the full source code and a live demo.</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://naioo.com/blog/css3-buttons-without-any-images/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>

