[TUT] Pretty CSS3 buttons

bluedevil customs est. 2009

Welcome Guest. Please login or register


Become a fan  follow us  follow us  Subscribe  contact us

  [TUT] Pretty CSS3 buttons

0 Members and 1 Guest are viewing this topic.

[TUT] Pretty CSS3 buttons
« on: January 13, 2012, 11:25:13 AM »
Awesome looking CSS3 buttons
-Create flexible CSS3 buttons to your SMF forum using any portal available.
-Open a new HTML block, paste the code below and wolla!

-Download the image below and upload it to your 'image' folder in your server.
-Edit the code below with the full path to the image.

**Compatible CSS3 browsers are, Safari, Chrome and FireFox 3+.

Demo: http://www.bluedevilcustoms.com/community/index.php/page,page691.html

Code: [Select]
<style type="text/css"> 

#light{
background-color:#FFF;
padding:10px;
margin-top:20px;}

li{
list-style:none;
padding-top:10px;
padding-bottom:10px;}

.button, .button:visited {
background: #222 url(http://www.path-to-image.com/images/overlay.png) repeat-x;
display: inline-block;
padding: 5px 10px 6px;
color: #fff;
text-decoration: none;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer
}
 
.button:hover { background-color: #111; color: #fff; }
.button:active { top: 1px; }
.small.button, .small.button:visited { font-size: 11px}
.button, .button:visited,
.medium.button, .medium.button:visited { font-size: 13px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  }
 
.large.button, .large.button:visited { font-size: 14px;
  padding: 8px 14px 9px; }
 
.super.button, .super.button:visited { font-size: 34px;
  padding: 8px 14px 9px; }

.pink.button, .magenta.button:visited { background-color: #e22092; }
.pink.button:hover { background-color: #c81e82; }
.green.button, .green.button:visited { background-color: #91bd09; }
.green.button:hover     { background-color: #749a02; }
.red.button, .red.button:visited { background-color: #e62727; }
.red.button:hover { background-color: #cf2525; }
.orange.button, .orange.button:visited { background-color: #ff5c00; }
.orange.button:hover { background-color: #d45500; }
.blue.button, .blue.button:visited     { background-color: #2981e4; }
.blue.button:hover { background-color: #2575cf; }
.yellow.button, .yellow.button:visited { background-color: #ffb515; }
.yellow.button:hover { background-color: #fc9200; }
</style>

 <div id="light"> 
       <ul>
        <li><a class="super button pink">Pink Button</a>
        <a class="large button green">Green Button</a></li>
       <li> <a class="large button blue">Blue Button</a>
        <a class="large button red">Red Button</a></li>
        <li><a class="large button orange">Orange Button</a>
        <a class="large button yellow">Yellow Button</a></li>
        </ul>
 </div>
« Last Edit: January 18, 2012, 10:13:06 PM by bluedevil »

Tags: css3 tut script button 


Community News