Monday 11 April 2016

Custom style of browse file using css


//css

.lbl
        {
            position: relative;
            border: 1px solid #adadad;
            text-align: center;
            cursor: pointer;
            color: #333;
            background-color: #e6e6e6;
            border-radius: 4px;
        }
        .lbl input
        {
            position: absolute;
            z-index: 2;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            /*margin-top: -22px;*/
        }      
.lbl:hover {
    background: #CCCCCC;
}
.lbl:active {
    background: #CCFFCC;

}

// Html

<div class="lbl">
    <input type="file"/>
    <span>Browse..</span>
</div>

//Result

Browse..

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...