Created
January 26, 2014 22:04
-
-
Save debussyman/8640039 to your computer and use it in GitHub Desktop.
Card CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box h3{ | |
text-align:center; | |
position:relative; | |
top:80px; | |
} | |
.box { | |
width:70%; | |
height:200px; | |
background:#FFF; | |
margin:40px auto; | |
} | |
/*================================================== | |
* Effect 2 | |
* ===============================================*/ | |
.effect2 | |
{ | |
position: relative; | |
-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; | |
-moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; | |
box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; | |
} | |
.effect2:before, .effect2:after | |
{ | |
z-index: -1; | |
position: absolute; | |
content: ""; | |
bottom: 15px; | |
left: 10px; | |
width: 50%; | |
top: 80%; | |
max-width:300px; | |
background: #777; | |
-webkit-box-shadow: 0 15px 10px #777; | |
-moz-box-shadow: 0 15px 10px #777; | |
box-shadow: 0 15px 10px #777; | |
-webkit-transform: rotate(-2deg); | |
-moz-transform: rotate(-2deg); | |
-o-transform: rotate(-2deg); | |
-ms-transform: rotate(-2deg); | |
transform: rotate(-2deg); | |
} | |
.effect2:after | |
{ | |
-webkit-transform: rotate(2deg); | |
-moz-transform: rotate(2deg); | |
-o-transform: rotate(2deg); | |
-ms-transform: rotate(2deg); | |
transform: rotate(2deg); | |
right: 10px; | |
left: auto; | |
} | |
/* | |
<div class="box effect2"> | |
<h3>Effect 2</h3> | |
</div> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment