Funky boxes
box-shadow
by kmouse
HTML
<div class="funky boxshadow_blur">Hello, do you feel the funk?</div>
<div class="funky boxshadow">Hello, do you feel the funk?</div>
<div class="funky boxshadow_pretty">Hello, do you feel the funk?</div>
<div class="blockquote"><q>You may shoot me with your words,<br/>
You may cut me with your eyes,<br/>
You may kill me with your hatefulness,<br/>
But still, like air, I'll rise.</q>
<p>— Maya Angelou</p>
</div>
CSS
html,
body {
height: 100%;
width: 100%;
}
body {
font-family: sans-serif;
background-image: linear-gradient(rgb(219, 166, 166), rgb(150, 150, 172));
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
.funky {
z-index: 0;
font-size: 2em;
color: black;
width: 400px;
height: 100px;
background: #ddd8;
border: 2px #0f0;
margin: 50px auto;
padding: 15px;
border-radius: 30px 8px;
}
.boxshadow_blur {
box-shadow:
#f00f 40px 30px 25px 0px,
#00ff -40px -30px 45px 0px,
#0f08 -60px 70px 60px 0px;
transform: rotate3d(0.2, 0.4, 0.1, 15deg);
}
.boxshadow {
margin-top: 150px;
border: 2px solid #333;
box-shadow:
#baa 60px 90px 0px 0px,
#c88 30px 60px 0px 0px,
/*#f66 0px 0px 15px 10px,*/
#f66 15px 5px 20px 20px inset
/*#f66 100px 50px 50px 0px inset*/
}
.boxshadow_pretty {
margin-top: 150px;
box-shadow:
inset 0 -3em 3em rgba(0, 0, 0, 0.1),
0 0 0 2px rgb(255, 255, 255),
0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}
.blockquote {
background: #dddf;
padding: 20px;
width: 50%;
margin: 100px auto;
border-radius: 7px;
box-shadow:
inset 0 -3em 3em rgba(0, 0, 0, 0.9),
0 0 0 2px rgb(255, 255, 255),
0.3em 0.3em 2em rgba(0, 0, 0, 0.9);
}