Basic label with drop shadow
by justjohn
HTML
<h1 class="name drop-shadow">Hello World!</h1>
CSS
body {
margin:0;
padding:0;
}
.name {
background: #f9f9f9;
padding: 10px;
margin: 0;
font-size: 2em;
text-align:center;
background-image: linear-gradient(bottom, rgb(235,235,235) 50%, rgb(255,255,255) 100%);
background-image: -o-linear-gradient(bottom, rgb(235,235,235) 50%, rgb(255,255,255) 100%);
background-image: -moz-linear-gradient(bottom, rgb(235,235,235) 50%, rgb(255,255,255) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(235,235,235) 50%, rgb(255,255,255) 100%);
background-image: -ms-linear-gradient(bottom, rgb(235,235,235) 50%, rgb(255,255,255) 100%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.5, rgb(235,235,235)),
color-stop(1, rgb(255,255,255))
);
}
.drop-shadow {
position:relative;
width:300px;
left: 200px;
}
.drop-shadow:before,
.drop-shadow:after {
content:"";
position:absolute;
z-index:-1;
bottom:15px;
left:10px;
width:50%;
height:20%;
max-width:300px;
-webkit-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
-moz-box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
-webkit-transform:rotate(-3deg);
-moz-transform:rotate(-3deg);
-o-transform:rotate(-3deg);
transform:rotate(-3deg);
}
.drop-shadow:after{
right:10px;
left:auto;
-webkit-transform:rotate(3deg);
-moz-transform:rotate(3deg);
-o-transform:rotate(3deg);
transform:rotate(3deg);
}