-
-
Save Kamrulhasan12345/0d15a7c73b7b12345c8be5e237cf73d4 to your computer and use it in GitHub Desktop.
CSS3: 3D box effect
This file contains 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-3d { | |
padding: 10px; | |
margin: 10px 5px 20px; | |
border-top: 1px solid #f4f4f2; | |
-ms-box-shadow: 0 7px 0 #BFBAAD, 0 0.5em 0 #A8A38C, 0 12px 12px #A8A38C; | |
-moz-box-shadow: 0 7px 0 #BFBAAD, 0 0.5em 0 #A8A38C, 0 12px 12px #A8A38C; | |
-o-box-shadow: 0 7px 0 #BFBAAD, 0 0.5em 0 #A8A38C, 0 12px 12px #A8A38C; | |
-webkit-box-shadow: 0 7px 0 #BFBAAD, 0 0.5em 0 #A8A38C, 0 12px 12px #A8A38C; | |
box-shadow: 0 7px 0 #BFBAAD, 0 0.5em 0 #A8A38C, 0 12px 12px #A8A38C; | |
-ms-border-radius: 8px; | |
-moz-border-radius: 8px; | |
-o-border-radius: 8px; | |
-webkit-border-radius: 8px; | |
border-radius: 8px; | |
} |
This file contains 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
<div class="box-3d"> | |
Cupcake ipsum dolor sit amet halvah. Lemon drops liquorice topping cotton candy. | |
Cupcake chupa chups liquorice jelly biscuit wafer. | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment