"Bootstrap 3D buttons"
Bootstrap 3.2.0 Snippet by faizshaikh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h2>3D Buttons</h2><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Bootsnipp -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7749520983305929"
data-ad-slot="1217000491"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div class="well text-center">
<button type="button" class="btn btn-hot text-capitalize btn-xs"><a href="http://www.positiwitty.com/">Hot button</a></button>
<button type="button" class="btn btn-sunny text-capitalize btn-xs"><a href="http://www.positiwitty.com/">Sunny button</a></button>
<button type="button" class="btn btn-fresh text-capitalize btn-xs"><a href="http://www.positiwitty.com/">Fresh button</a></button>
<button type="button" class="btn btn-sky text-capitalize btn-xs"><a href="http://www.positiwitty.com/">Sky button</a></button>
</div>
<div class="well text-center">
<button type="button" class="btn btn-hot text-uppercase btn-sm"><a href="http://www.positiwitty.com/">Hot button</a></button>
<button type="button" class="btn btn-sunny text-uppercase btn-sm"><a href="http://www.positiwitty.com/">Sunny button</a></button>
<button type="button" class="btn btn-fresh text-uppercase btn-sm"><a href="http://www.positiwitty.com/">Fresh button</a></button>
<button type="button" class="btn btn-sky text-uppercase btn-sm"><a href="http://www.positiwitty.com/">Sky button</a></button>
</div>
<div class="well text-center">
<button type="button" class="btn btn-hot text-uppercase"><a href="http://www.positiwitty.com/">Hot button</a></button>
<button type="button" class="btn btn-sunny text-uppercase"><a href="http://www.positiwitty.com/">Sunny button</a></button>
<button type="button" class="btn btn-fresh text-uppercase"><a href="http://www.positiwitty.com/">Fresh button</a></button>
<button type="button" class="btn btn-sky text-uppercase"><a href="http://www.positiwitty.com/">Sky button</a></button>
</div>
<div class="well text-center">
<button type="button" class="btn btn-hot text-uppercase btn-lg"><a href="http://www.positiwitty.com/">Hot button</a></button>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url(http://fonts.googleapis.com/css?family=Oswald);
body{
font-family: 'Oswald', sans-serif;
}
h2{
display:inline-block;
}
.btn{
margin: 4px;
box-shadow: 1px 1px 5px #888888;
}
.btn-xs{
font-weight: 300;
}
.btn-hot {
color: #fff;
background-color: #db5566;
border-bottom:2px solid #af4451;
}
.btn-hot:hover, .btn-sky.active:focus, .btn-hot:focus, .open>.dropdown-toggle.btn-hot {
color: #fff;
background-color: #df6a78;
border-bottom:2px solid #b25560;
outline: none;}
.btn-hot:active, .btn-hot.active {
color: #fff;
background-color: #c04b59;
border-top:2px solid #9a3c47;
margin-top: 2px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Few More Bootstrap 3D Buttons
http://www.designerslib.com...

DesignersLib () - 8 years ago - Reply -1


looks great!!!!

iliosgroup () - 9 years ago - Reply 0


Great 3D buttons, can't wait to use this in my next project :)

AZU () - 10 years ago - Reply 0


Awesome buttons! Btw the last curly bracket is unnecessary in css

Andy () - 10 years ago - Reply 0


Great snippet.. i'm using in a web project

Miguel Machado () - 10 years ago - Reply 0


I am Chinese users, why I can only see component effect, and can't see the HTML, CSS, and js

ants () - 10 years ago - Reply 0


You can easily fix the height change by adding the following rule to the css.

.btn:active {
margin-top: 2px;
}

Jerbo06 () - 10 years ago - Reply 0


thanks, fixed it.

Faiz Shaikh () - 10 years ago - Reply 0


My pleasure :) Great snippet! I will use it for sure!
Edit: after looking further into it, it looks better if you change margin-top to margin-bottom ;)

Jerbo06 () - 10 years ago - Reply 0


yeahhh height changes when buttons are clicked

Jason Bassett () - 10 years ago - Reply 0


Looks like the height changes slightly when you click on them

Michael Dyrynda () - 10 years ago - Reply 0