18 Oct 2011 9 Comments
Free CSS3 Buttons (6 colors)
I love the power of the CSS3.
Today I released a new freebie, witch contain css3 buttons in 6 color schemes and 5 sizes.
HTML(blue example):
<a href="#none" class="button small blue" title="Button">Button</a> <a href="#none" class="button normal blue" title="Button">Button</a> <a href="#none" class="button medium blue" title="Button">Button</a> <a href="#none" class="button big blue" title="Button">Button</a> <a href="#none" class="button megabig blue" title="Button">Button</a>
CSS:
Now we need to design the global button.
.button {
font-family: Helvetica, Arial, sans-serif;
text-decoration: none;
font-weight: bold;
line-height: 1;
color: white;
text-shadow: 0 -1px 1px rgba(0,0,0,.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.5);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.5);
-o-box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.5);
box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.5);
}
Button size:
.small, .normal, .medium, .big, .megabig {
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-o-border-radius: 8px;
border-radius: 8px;
padding: 5px 10px;
}
.small {
font-size: 11px;
}
.normal {
font-size: 14px;
}
.medium {
font-size: 18px;
}
.big {
font-size: 24px;
}
.megabig {
font-size: 32px;
}
The css for blue button (ex.):
Passive butoon:
.blue {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#52A8E8), to(#377AD0));
background-image: -moz-linear-gradient(0% 100% 90deg, #377AD0, #52A8E8);
background-color: #52A8E8;
border: 1px solid #20559A;
}
Hovered button:
.blue:hover, .blue:focus {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#54A1D8), to(#1967CA));
background-image: -moz-linear-gradient(0% 100% 90deg, #1967CA, #54A1D8);
background-color: #52A8E8;
color: white;
}
Active button:
.blue:active {
background: #2D7CD1;
color: white;
}






Oct 24, 2011 @ 14:25:19
i am learn ..
Nov 03, 2011 @ 15:21:04
Hmm, I can’t understand what you want to say. But if you learn CSS3 now, GOOD LUCK. It’s not so hard.
Dec 02, 2011 @ 09:46:26
I have exactly what info I want. Check, palese. Wait, it’s free? Awesome!
Dec 02, 2011 @ 11:22:56
And to think I was going to talk to someone in preosn about this.
Dec 04, 2011 @ 00:31:02
How could any of this be bteetr stated? It couldn’t.
Dec 02, 2011 @ 05:36:46
Shoot, so that’s that one spuspeos.
Dec 10, 2011 @ 19:18:47
Wow, nice design – I will try and use the code to make something for my site.
Thanks for the tips.
Jan 12, 2012 @ 03:09:40
An impressive share, I just given this onto a colleague who was doing slightly evaluation on this. And he in actual fact purchased me breakfast because I discovered it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying more on this topic. If attainable, as you change into experience, would you mind updating your weblog with extra particulars? It’s extremely helpful for me. Massive thumb up for this blog publish!
Jan 14, 2012 @ 22:35:08
very good publish, i certainly love this web site, keep on it