<?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>Codrops &#187; buttons</title>
	<atom:link href="http://tympanus.net/codrops/tag/buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +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>Collective #8</title>
		<link>http://tympanus.net/codrops/collective/collective-8/</link>
		<comments>http://tympanus.net/codrops/collective/collective-8/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 07:27:26 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[responsive]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?post_type=collective&#038;p=8540</guid>
		<description><![CDATA[3D Experiment * CSS Selectors * PSDs * Free Icons * Simple Cookies * Responsive Viewport Units * CSS Variables]]></description>
			<content:encoded><![CDATA[<div class="ct-coll-item">
<article>
<h2>PSD Buttons</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.alessioatzeni.com/blog/simple-button-ui-psd/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_01.jpg" alt="Collective8_01" title="" width="200" height="142" class="alignnone size-full wp-image-8541" /></a></p>
<p>Alessio Atzeni gives us a beautifully clean set of of UI Buttons in this free PSD.</p>
<p>	   <a class="ct-coll-link" href="http://www.alessioatzeni.com/blog/simple-button-ui-psd/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>CreateJS Suite</h2>
<p>	   <a class="ct-coll-thumb" href="http://createjs.com"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_02.jpg" alt="Collective8_02" title="" width="150" height="149" class="alignnone size-full wp-image-8542" /></a></p>
<p>CreateJS is a super-suite of useful libraries and tools for creating interactive, HTML5 based web content. As they are modular, the libraries can work independently from each other. You can also mix them and use them as needed. Check out the featured projects to see some of them in action.</p>
<p>	   <a class="ct-coll-link" href="http://createjs.com">Try it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Mobile-First Responsive Web Design</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.html5rocks.com/en/mobile/responsivedesign/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_03.jpg" alt="Collective8_03" title="" width="229" height="127" class="alignnone size-full wp-image-8543" /></a></p>
<p>In this HTML5 Rocks tutorial, Brad Frost shows us step-by-step how to create a responsive website which is designed with the mobile-first strategy.</p>
<p>	   <a class="ct-coll-link" href="http://www.html5rocks.com/en/mobile/responsivedesign/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Beercamp: An Experiment With CSS 3D</h2>
<p>	   <a class="ct-coll-thumb" href="http://coding.smashingmagazine.com/2012/04/17/beercamp-an-experiment-with-css-3d/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_04.jpg" alt="Collective8_04" title="" width="300" height="132" class="alignnone size-full wp-image-8544" /></a></p>
<p>Tom Giannattasio, this year’s Beercamp website organizer, shares some amazing techniques and insights of the 3D experience that pushes the boundaries of what can be done with modern web technologies such as SVG and CSS 3D transforms. Make sure to see the website in action: <a href="http://2012.beercamp.com/">http://2012.beercamp.com/</a></p>
<p>	   <a class="ct-coll-link" href="http://coding.smashingmagazine.com/2012/04/17/beercamp-an-experiment-with-css-3d/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>CSS Selectors</h2>
<p>	   <a class="ct-coll-thumb" href="http://vogtjosh.com/selectors/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_05.jpg" alt="Collective8_05" title="" width="200" height="149" class="alignnone size-full wp-image-8545" /></a></p>
<p>If you need a complete reference of CSS Selectors then this is the right site. It&#8217;s a great overview with links to live examples and visual indication for browser support.</p>
<p>	   <a class="ct-coll-link" href="http://vogtjosh.com/selectors/">Check it out</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Let’s Talk about Semantics</h2>
<p>	   <a class="ct-coll-thumb" href="http://html5doctor.com/lets-talk-about-semantics/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_06.jpg" alt="Collective8_06" title="" width="230" height="177" class="alignnone size-full wp-image-8546" /></a></p>
<p>Mike Robinson explains the importance and of semantics in HTML and how to employ HTML5 for writing meaningful markup without getting lost in the confusion that surrounds it. </p>
<p>	   <a class="ct-coll-link" href="http://html5doctor.com/lets-talk-about-semantics/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Tracking Scroll Depth</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.ravelrumba.com/blog/tracking-scroll-depth-jquery-google-analytics/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_07.jpg" alt="Collective8_07" title="" width="250" height="81" class="alignnone size-full wp-image-8547" /></a></p>
<p>If you have a website you might have wondered how far down users scroll to see the &#8220;below-the-fold&#8221; content. Rob Flaherty from Ravelrumba explains how to use jQuery Scroll Depth to record and report scroll events to Google Analytics in order to see the scroll percentage. </p>
<p>	   <a class="ct-coll-link" href="http://www.ravelrumba.com/blog/tracking-scroll-depth-jquery-google-analytics/">Try it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>heatmap.js</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.patrick-wied.at/static/heatmapjs/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_08.jpg" alt="Collective8_08" title="" width="200" height="120" class="alignnone size-full wp-image-8548" /></a></p>
<p>Create heatmaps of a website with this JavaScript library that employs HTML5 canvas.</p>
<p>	   <a class="ct-coll-link" href="http://www.patrick-wied.at/static/heatmapjs/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>PageSlide</h2>
<p>	   <a class="ct-coll-thumb" href="http://srobbin.github.com/jquery-pageslide/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_09.jpg" alt="Collective8_09" title="" width="300" height="88" class="alignnone size-full wp-image-8549" /></a></p>
<p>Have you ever wondered how to slide the whole website and reveal a sidebar panel a lá Path? With this jQuery Plugin you can simply do that and create a really nice effect for showing optional content. Don&#8217;t forget to check out the responsive demo.</p>
<p>	   <a class="ct-coll-link" href="http://srobbin.github.com/jquery-pageslide/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Responsive Viewport Units</h2>
<p>	   <a class="ct-coll-thumb" href="http://generatedcontent.org/post/21279324555/viewportunits"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_10.jpg" alt="Collective8_10" title="" width="260" height="175" class="alignnone size-full wp-image-8550" /></a></p>
<p>The new CSS3 values and units vh, vw, and vmin are arriving and it&#8217;s time to meet these cool kids. David Storey introduces them and shows us how to use them in a responsive example.</p>
<p>	   <a class="ct-coll-link" href="http://generatedcontent.org/post/21279324555/viewportunits">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Refactoring &gt;14,000 lines of CSS into Sass</h2>
<p>	   <a class="ct-coll-thumb" href="http://wildbit.com/blog/2012/04/16/refactoring-14000-lines-of-css-into-sass/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_11.jpg" alt="Collective8_11" title="" width="213" height="146" class="alignnone size-full wp-image-8551" /></a></p>
<p>How do you turn a CSS mess into slick high-performance CSS? You use SASS! Eugene Fedorenko will show you how he did it at Beanstalk and what the advantages over &#8220;handcrafted&#8221; CSS are.</p>
<p>	   <a class="ct-coll-link" href="http://wildbit.com/blog/2012/04/16/refactoring-14000-lines-of-css-into-sass/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>10 High-Quality Photography Icons</h2>
<p>	   <a class="ct-coll-thumb" href="http://vandelaydesign.com/blog/icon-sets/photography/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_14.jpg" alt="Collective8_14" title="" width="300" height="241" class="alignnone size-full wp-image-8554" /></a></p>
<p>Iconshock has designed this amazingly detailed icon set for the readers of the Vandelay Design blog. The set includes 10 high-quality photography-related PNG icons.</p>
<p>	   <a class="ct-coll-link" href="http://vandelaydesign.com/blog/icon-sets/photography/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>About CSS Variables</h2>
<p>	   <a class="ct-coll-thumb" href="http://drublic.de/blog/about-css-variables/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_12.jpg" alt="Collective8_12" title="" width="273" height="153" class="alignnone size-full wp-image-8552" /></a></p>
<p>Now that the CSS Variables Module Level 1 is an actual Working Draft of the W3C, you might be interested in how CSS Variables work. This is a short overview with a couple of examples.</p>
<p>	   <a class="ct-coll-link" href="http://drublic.de/blog/about-css-variables/">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>How to use CSS to hide links without href?</h2>
<p>A very interesting question on Stackoverflow about an interesting little problem with even more interesting answers. It will help you undertstand more about CSS Selectors.</p>
<p>	   <a class="ct-coll-link" href="http://stackoverflow.com/questions/10185209/how-to-use-css-to-hide-links-without-href">Read it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>200 Free Icons</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.webdesignerdepot.com/2012/04/free-download-200-vector-icons-from-inventicons/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_13.jpg" alt="Collective8_13" title="" width="207" height="149" class="alignnone size-full wp-image-8553" /></a></p>
<p>Inventicons gives us this fabolous icon set for free. It includes many useful UI icons and is free for personal and commerical use.</p>
<p>	   <a class="ct-coll-link" href="http://www.webdesignerdepot.com/2012/04/free-download-200-vector-icons-from-inventicons/">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Alphageometry &#8211; Decorative Typeface</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.behance.net/gallery/Alphageometry-Decorative-Typeface/3694751"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_16.jpg" alt="Collective8_16" title="" width="280" height="172" class="alignnone size-full wp-image-8556" /></a></p>
<p>This is not a font in the classical sense but letters in vector format that you can use to create beautiful decorative illustrations.</p>
<p>	   <a class="ct-coll-link" href="http://www.behance.net/gallery/Alphageometry-Decorative-Typeface/3694751">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>cookie.js</h2>
<p>Have you ever worked with Cookies in JavaScript on your website and find it too messy? This small and independent JavaScript library will help you with setting, getting and removing cookies in the most simple way. It has some very useful methods, accepts several paramteres and allows chaining.</p>
<p>	   <a class="ct-coll-link" href="https://github.com/js-coder/cookie.js">Get it</a><br />
   </article>
</div>
<div class="ct-coll-item">
<article>
<h2>Premium Pixels Icon Set</h2>
<p>	   <a class="ct-coll-thumb" href="http://www.icondeposit.com/theicondeposit:28"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/04/Collective8_15.jpg" alt="Collective8_15" title="" width="140" height="103" class="alignnone size-full wp-image-8555" /></a></p>
<p>Matt Gentile did it again: a super-slick icon set, including the Photoshop custom shape file.</p>
<p>	   <a class="ct-coll-link" href="http://www.icondeposit.com/theicondeposit:28">Get it</a><br />
   </article>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/collective/collective-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Buttons with Pseudo-elements</title>
		<link>http://tympanus.net/codrops/2012/01/11/css-buttons-with-pseudo-elements/</link>
		<comments>http://tympanus.net/codrops/2012/01/11/css-buttons-with-pseudo-elements/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:42:09 +0000</pubDate>
		<dc:creator>Sergio Camalich</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[::before]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[gradients]]></category>
		<category><![CDATA[pseudo-elements]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=7170</guid>
		<description><![CDATA[In this tutorial, I'll show you how to create buttons with a twist, using just one anchor tag per button and the great power of CSS.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_main1.jpg" alt="cssbuttons_main" title="" width="580" height="315" class="aligncenter size-full wp-image-7259" /></a></p>
<p><a class="demo" href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/CSSButtonsPseudoElements.zip">Download source</a></p>
<p>Hola, amigos. For the last month or so, I&#8217;ve been experimenting with the power of CSS pseudo-elements, specially when it comes to mixing them with buttons and that way recreating some great effects that were only possible to do with sprites, in the past.</p>
<p>In this tutorial, I&#8217;ll show you how to create buttons with a twist, using just one anchor tag per button and the great power of CSS.</p>
<p>The font used is &#8216;Open Sans&#8217; by <a href="https://profiles.google.com/107777320916704234605/about">Steve Matteson</a>.</p>
<p><strong>Disclaimer:</strong><br />
<em>I&#8217;ll not be using CSS vendor prefixes in this tutorial or else it would be crazy long, but you will find them in the downloadable files.</p>
<p>I avoided CSS transitions since, right now, Firefox is the only browser that supports them on pseudo-elements. Plus, I believe that these buttons work just fine without them.</em></p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
<h4>Markup</h4>
<p>The structure of all these buttons needs just one anchor tag for it to work, since we will be creating the other elements with the ::before pseudo-class.</p>
<pre class="brush:xml">
<a href="#" class="a_demo_one">
     Click me!
</a>
</pre>
<h3>Example 1</h3>
<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_01.jpg" alt="cssbuttons_01" title="" width="580" height="250" class="aligncenter size-full wp-image-7246" /></a></p>
<p>I think this is the easiest one, with a very regular CSS.</p>
<h4>CSS</h4>
<p>First of all, we will give the general style of the button, including its active state. It is important to notice the relative positioning, since it will help us later with the positioning of the ::before element:</p>
<pre class="brush:css">
.a_demo_one {
	background-color:#ba2323;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	border: solid 1px #831212;
	background-image: linear-gradient(bottom, rgb(171,27,27) 0%, rgb(212,51,51) 100%);
	border-radius: 5px;
}

.a_demo_one:active {
	padding-bottom:9px;
	padding-left:10px;
	padding-right:10px;
	padding-top:11px;
	top:1px;
	background-image: linear-gradient(bottom, rgb(171,27,27) 100%, rgb(212,51,51) 0%);
}
</pre>
<p>Then, we create the gray container using the ::before pseudo-element. Absolute positioning makes our life easier to, believe it or not, position our element:</p>
<pre class="brush:css">
.a_demo_one::before {
	background-color:#ccd0d5;
	content:"";
	display:block;
	position:absolute;
	width:100%;
	height:100%;
	padding:8px;
	left:-8px;
	top:-8px;
	z-index:-1;
	border-radius: 5px;
	box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff;
}
</pre>
<h3>Example 2</h3>
<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/index2.html"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_021.jpg" alt="cssbuttons_02" title="" width="580" height="250" class="aligncenter size-full wp-image-7258" /></a></p>
<p>This one is a little bit more complex because of the 3D&#8217;ish look. This button is outside of its &#8216;container&#8217;, but when you click it, it goes down:</p>
<h4>CSS</h4>
<pre class="brush:css">
.a_demo_two {
	background-color:#6fba26;
	padding:10px;
	position:relative;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	background-image: linear-gradient(bottom, rgb(100,170,30) 0%, rgb(129,212,51) 100%);
	box-shadow: inset 0px 1px 0px #b2f17f, 0px 6px 0px #3d6f0d;
	border-radius: 5px;
}

.a_demo_two:active {
	top:7px;
	background-image: linear-gradient(bottom, rgb(100,170,30) 100%, rgb(129,212,51) 0%);
	box-shadow: inset 0px 1px 0px #b2f17f, inset 0px -1px 0px #3d6f0d;
	color: #156785;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.3);
	background: rgb(44,160,202);
}
</pre>
<p><strong>And here&#8217;s the tricky part: </strong></p>
<p>Since the position of the pseudo-element depends on its parent, once the parent moves down a few pixels, you have to move up the pseudo-element that same amount of pixels.</p>
<pre class="brush:css">
.a_demo_two::before {
	background-color:#072239;
	content:"";
	display:block;
	position:absolute;
	width:100%;
	height:100%;
	padding-left:2px;
	padding-right:2px;
	padding-bottom:4px;
	left:-2px;
	top:5px;
	z-index:-1;
	border-radius: 6px;
	box-shadow: 0px 1px 0px #fff;
}

.a_demo_two:active::before {
	top:-2px;
}
</pre>
<h3>Example 3</h3>
<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/index3.html"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_03.jpg" alt="cssbuttons_03" title="" width="580" height="250" class="aligncenter size-full wp-image-7248" /></a></p>
<p>I think this one is my favorite since it was the first one I ever made this way and people seem to really like it. It is a divided button that &#8220;breaks&#8221; once you click it.</p>
<h4>CSS</h4>
<p>Again, the first thing we have to do is create the lighter part. In here, you&#8217;ll notice a right margin, this is in order to compensate for the width of the pseudo-element if you want to center the button. You don&#8217;t need it if that is not a problem for you.</p>
<pre class="brush:css">
.a_demo_three {
	background-color:#3bb3e0;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	position:relative;
	padding:10px 20px;
	border-left:solid 1px #2ab7ec;
	margin-left:35px;
	background-image: linear-gradient(bottom, rgb(44,160,202) 0%, rgb(62,184,229) 100%);
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	box-shadow: inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #156785, 0px 10px 5px #999;
}

.a_demo_three:active {
	top:3px;
	background-image: linear-gradient(bottom, rgb(62,184,229) 0%, rgb(44,160,202) 100%);
	box-shadow: inset 0px 1px 0px #2ab7ec, 0px 2px 0px 0px #156785, 0px 5px 3px #999;
}
</pre>
<p>And then the pseudo-element&#8217;s CSS:</p>
<pre class="brush:css">
.a_demo_three::before {
	content:"·";
	width:35px;
	max-height:29px;
	height:100%;
	position:absolute;
	display:block;
	padding-top:8px;
	top:0px;
	left:-36px;
	font-size:16px;
	font-weight:bold;
	color:#8fd1ea;
	text-shadow:1px 1px 0px #07526e;
	border-right:solid 1px #07526e;
	background-image: linear-gradient(bottom, rgb(10,94,125) 0%, rgb(14,139,184) 100%);
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	box-shadow:inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #032b3a, 0px 10px 5px #999 ;
}

.a_demo_three:active::before {
	top:-3px;
	box-shadow:inset 0px 1px 0px #2ab7ec, 0px 5px 0px 0px #032b3a, 1px 1px 0px 0px #044a64, 2px 2px 0px 0px #044a64, 2px 5px 0px 0px #044a64, 6px 4px 2px #0b698b, 0px 10px 5px #999 ;
}
</pre>
<h3>Example 4</h3>
<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/index4.html"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_04.jpg" alt="cssbutton_04" title="" width="580" height="250" class="aligncenter size-full wp-image-7249" /></a></p>
<p>This time, we will use the pseudo-element as a pointer, using one image as a background, though you can use some of those great <a href="http://css-tricks.com/examples/IconFont/">icon fonts</a>.</p>
<h4>CSS</h4>
<pre class="brush:css">
.a_demo_four {
	background-color:#4b3f39;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	position:relative;
	padding:10px 20px;
	padding-right:50px;
	background-image: linear-gradient(bottom, rgb(62,51,46) 0%, rgb(101,86,78) 100%);
	border-radius: 5px;
	box-shadow: inset 0px 1px 0px #9e8d84, 0px 5px 0px 0px #322620, 0px 10px 5px #999;
}

.a_demo_four:active {
	top:3px;
	background-image: linear-gradient(bottom, rgb(62,51,46) 100%, rgb(101,86,78) 0%);
	box-shadow: inset 0px 1px 0px #9e8d84, 0px 2px 0px 0px #322620, 0px 5px 3px #999;
}

.a_demo_four::before {
	background-color:#322620;
	background-image:url(../images/right_arrow.png);
	background-repeat:no-repeat;
	background-position:center center;
	content:"";
	width:20px;
	height:20px;
	position:absolute;
	right:15px;
	top:50%;
	margin-top:-9px;
	border-radius: 50%;
	box-shadow: inset 0px 1px 0px #19120f, 0px 1px 0px #827066;
}

.a_demo_four:active::before {
	top:50%;
	margin-top:-12px;
	box-shadow: inset 0px 1px 0px #827066, 0px 3px 0px #19120f, 0px 6px 3px #382e29;
}
</pre>
<h3>Example 5</h3>
<p><a href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/index5.html"><img src="http://tympanus.net/codrops/wp-content/uploads/2012/01/cssbuttons_05.jpg" alt="cssbuttons_05" title="" width="580" height="250" class="aligncenter size-full wp-image-7250" /></a></p>
<p>This example is a bit cheesy, I know, but you can use it in so many and really useful ways.</p>
<h4>CSS</h4>
<pre class="brush:css">
.a_demo_five {
	background-color:#9827d3;
	width:150px;
	display:inline-block;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
	text-decoration:none;
	color:#fff;
	position:relative;
	margin-top:40px;
	padding-bottom:10px;
	padding-top:10px;
	background-image: linear-gradient(bottom, rgb(168,48,232) 100%, rgb(141,32,196) 0%);
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
	box-shadow: inset 0px 1px 0px #ca73f8, 0px 5px 0px 0px #6a1099, 0px 10px 5px #999;
}

.a_demo_five:active {
	top:3px;
	background-image: linear-gradient(bottom, rgb(168,48,232) 0%, rgb(141,32,196) 100%);
	box-shadow: inset 0px 4px 1px #7215a3, 0px 2px 0px 0px #6a1099, 0px 5px 3px #999;
}

.a_demo_five::before {
	background-color:#fff;
	background-image:url(../images/heart.gif);
	background-repeat:no-repeat;
	background-position:center center;
	border-left:solid 1px #CCC;
	border-top:solid 1px #CCC;
	border-right:solid 1px #CCC;
	content:"";
	width:148px;
	height:40px;
	position:absolute;
	top:-30px;
	left:0px;
	margin-top:-11px;
	z-index:-1;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

.a_demo_five:active::before {
	top: -33px;
	box-shadow: 0px 3px 0px #ccc;
}
</pre>
<h3>In the end</h3>
<p>And well, this is it, for now. Remember that these buttons are still kind of experimental, so not every browser supports them that well. </p>
<p>Thank you for reading this tutorial and I hope that you find it useful.</p>
<p><a class="demo" href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/">View demo</a> <a class="download" href="http://tympanus.net/Tutorials/CSSButtonsPseudoElements/CSSButtonsPseudoElements.zip">Download source</a></p>
<div class="googlead"><!-- wp_ad_camp_1 --></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2012/01/11/css-buttons-with-pseudo-elements/feed/</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
		<item>
		<title>Mega Web Buttons Pack #1</title>
		<link>http://tympanus.net/codrops/2011/04/17/mega-web-buttons-pack-1/</link>
		<comments>http://tympanus.net/codrops/2011/04/17/mega-web-buttons-pack-1/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 21:01:10 +0000</pubDate>
		<dc:creator>Marcin Dziewulski</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=4652</guid>
		<description><![CDATA[View demoDownload source Today we want to share our first set of easy-to-implement buttons called &#8216;Mega Web Buttons Pack&#8217;. In this set you will find 42 buttons which you can use easily on your website. We are using the WooFunction icon set released under the GNU General Public License. Our first step is to add [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://tympanus.net/Development/MegaWebButtonsPack1/"><img src="http://tympanus.net/codrops/wp-content/uploads/2011/04/megawebbuttonspack1.jpg" alt="" title="megawebbuttonspack1" width="580" height="315" class="aligncenter size-full wp-image-4664" /></a><br />
<a class="demo" href="http://tympanus.net/Development/MegaWebButtonsPack1/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/Development/MegaWebButtonsPack1/MegaWebButtonsPack1.zip">Download source</a></p>
<p>Today we want to share our first set of easy-to-implement buttons called &#8216;Mega Web Buttons Pack&#8217;. In this set you will find 42 buttons which you can use easily on your website. We are using the <a href="http://www.woothemes.com/2009/09/woofunction-178-amazing-web-design-icons/" target="_blank">WooFunction icon set</a> released under the <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GNU General Public License</a>.</p>
<p>Our first step is to add the following line of jQuery:</p>
<pre class="brush:js">$('.btn').append($('&lt;span /&gt;').addClass('helper'));</pre>
<p>This means that we will create a new &#8216;span&#8217; element which is the holder for the button icon.</p>
<p>If, for example, you want to add the &#8216;Chart&#8217; button you need to add markup to your website:</p>
<pre class="brush:xml">&lt;a href="#" class="btn chart"&gt;Chart&lt;/a&gt;</pre>
<p>or the &#8216;Search&#8217; button:</p>
<pre class="brush:xml">&lt;a href="#" class="btn search"&gt;Search&lt;/a&gt;</pre>
<p>In the CSS you can change the looks by, for example, changing the background color:</p>
<pre class="brush:xml">.btn.green {
    background:#2DA10C;
}</pre>
<p>and markup will be:</p>
<pre class="brush:xml"><a class="btn green search" href="#">Search</a></pre>
<p>etc. :)</p>
<p>We hope you like our experiment. Let us know which icon set you would like to see wrapped up like this in the future.</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2011/04/17/mega-web-buttons-pack-1/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>Free Web 2.0 style glossy buttons</title>
		<link>http://tympanus.net/codrops/2009/08/30/free-web-2-0-style-glossy-buttons/</link>
		<comments>http://tympanus.net/codrops/2009/08/30/free-web-2-0-style-glossy-buttons/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 14:38:57 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[glossy]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=106</guid>
		<description><![CDATA[Here is a set of some colorful glossy web 2.0 style buttons in png format (size: 203 px wide, 71 px high). You can use them as you like! Download them as a zip file: Buttonset ZIP Download Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Here is a set of some colorful glossy web 2.0 style buttons in png format (size: 203 px wide, 71 px high). You can use them as you like!</p>
<div id="attachment_107" class="wp-caption alignnone" style="width: 507px"><a href="http://tympanus.net/codrops/wp-content/uploads/2009/08/buttonset.png"><img class="size-full wp-image-107" title="buttonset" src="http://tympanus.net/codrops/wp-content/uploads/2009/08/buttonset.png" alt="Glossy buttons" width="497" height="321" /></a><p class="wp-caption-text">Glossy buttons</p></div>
<p><span id="more-106"></span>Download them as a zip file: <a href="http://tympanus.net/codrops/wp-content/uploads/2009/08/Buttonset.zip">Buttonset ZIP Download</a></p>
<p>Enjoy!</p>
<div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/08/30/free-web-2-0-style-glossy-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/buttons/feed/ ) in 0.22065 seconds, on May 23rd, 2012 at 1:45 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 23rd, 2012 at 2:45 pm UTC -->
