Created
July 25, 2017 08:58
-
-
Save 607011/b200d133474a74bbad76712e9a7242bc to your computer and use it in GitHub Desktop.
Fancy shadow
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Fancy shadow demo</title> | |
<style type="text/css"> | |
html, body { | |
font-family: sans-serif; | |
font-size: 10pt; | |
background-color: #fff; | |
color: #333; | |
} | |
.box { | |
position: relative; | |
background-color: #eee; | |
padding: 8pt; | |
width: 50%; | |
max-width: 640px; | |
color: #333; | |
border-top: 4pt solid orange; | |
} | |
.fancy-shadow:before { | |
position: absolute; | |
bottom: 18px; | |
left: 10px; | |
width: 70%; | |
height: 50%; | |
max-height: 50px; | |
transform: rotate(-3deg); | |
box-shadow: 0 17px 12px rgba(0, 0, 0, 0.5); | |
content: ""; | |
z-index: -1; | |
} | |
.fancy-shadow:after { | |
position: absolute; | |
bottom: 18px; | |
right: 10px; | |
width: 70%; | |
height: 50%; | |
max-height: 50px; | |
transform: rotate(3deg); | |
box-shadow: 0 17px 12px rgba(0, 0, 0, 0.5); | |
content: ""; | |
z-index: -1; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Fancy shadow demo</h1> | |
<div class="box fancy-shadow"> | |
<strong>Lorem ipsum</strong> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
</div> | |
<body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment