Responsive Ads Here

Monday, 16 October 2017

How to add stylish button to input type file and make it work??

HTML:

      <span class="file-wrapper">
      <input type='file' id='bgphotoimg' onclick="getImage()"/>
       <a class="col-sm-12 col-xs-12 btn btn-primary" style="margin-top: 15px;"> Upload Image</a>
       </span>


css:


.file-wrapper {
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    position: relative;
}
 input[type=file] {
    display: block;
}
.file-wrapper input {
    cursor: pointer;
    font-size: 100px;
    filter: alpha(opacity=1);
    -moz-opacity: 0.01;
    opacity: 0.00;
    position: absolute;
    top: 10%;
    z-index: 9;
}
#clock{
    background-image:url('');
    background-size:cover;
    background-position: center;
    height: 175px; 
     width: 100%;
    border: 1px solid #bbb;
}

No comments:

Post a Comment

On scroll Sticky footer

HTML5: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Sticky Footer | Co...

Contact Form

Name

Email *

Message *