How to change placeholder text color

By
Advertisement
<style type="text/css">
    input::-webkit-input-placeholder,textarea::-webkit-input-placeholder
    {
        color: #555;
    }
    input:focus::-webkit-input-placeholder,textarea:focus::-webkit-input-placeholder
    {
        color: #c4c7c8;
    }
       
    /* Firefox < 19 */
    input:-moz-placeholder,textarea:-moz-placeholder
    {
            color: #555;opacity:1;
    }
    input:focus:-moz-placeholder,textarea:focus:-moz-placeholder
    {
        color: #c4c7c8;
    }
       
    /* Firefox > 19 */
    input::-moz-placeholder,textarea::-moz-placeholder
    {
            color: #555;opacity:1;
    }
    input:focus::-moz-placeholder,textarea:focus::-moz-placeholder
    {
        color: #c4c7c8;
    }
       
    /* Internet Explorer 10 */
    input:-ms-input-placeholder,textarea:-ms-input-placeholder
    {
            color: #555;
    }
    input:focus:-ms-input-placeholder,textarea:focus:-ms-input-placeholder
    {
        color: #c4c7c8;
    }
</style>


0 comments:

Post a Comment

Online Casino