Coding for Download Button

Download Button


<html>
<head>
<style>
.button {
    width: 200px;
    margin: 150px auto;
}

.button a {
    display: block;
    height: 50px;
    width: 200px;
    color: white;
    font: 17px/50px sans-serif,Helvetica;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    background: #4285f4;
}

.button p {
    background: #151719;
    display: block;
    height: 40px;
    width: 180px;
    margin: -50px 0 0 10px;
    text-align: center;
    font: 14px/45px sans-serif,Helvetica;
    color: #eee;
    position: absolute;
    z-index: -1;
    -webkit-transition: margin 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
    -moz-transition: margin 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
    -o-transition: margin 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
    -ms-transition: margin 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
    transition: margin 0.7s cubic-bezier(0.6, -0.28, 0.74, 0.05);
}


.button a, p {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 13px;
    -webkit-box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    -moz-box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.button:hover .bottom {
margin: -10px 0 0 10px
}

.button:hover .top {
    margin: -80px 0 0 10px;
    line-height: 35px;
}
</style>
</head>
<body>

<div class="button">
<a href="#">Download</a>
<p class="top">Filename : Hope.jpg</p>
<p class="bottom">Size: 8.66MB</p>
</div>
</body>
</html>

Comments