[Special Summer Sale] 40% OFF All Magento 2 Themes

Cart

Change an HTML input's placeholder color with CSS

  • This topic is empty.
Viewing 31 post (of 31 total)
  • Author
    Posts
  • #9073
    David Hoang
    Keymaster

    Try this CSS:

    input::-webkit-input-placeholder {
        /* Chrome/Opera/Safari */
        color: #ddd;
    }
    input::-moz-placeholder {
        /* Firefox 19+ */
        color: #ddd;
    }
    input:-ms-input-placeholder {
        /* IE 10+ */
        color: #ddd;
    }
    input:-moz-placeholder {
        /* Firefox 18- */
        color: #ddd;
    }
    
Viewing 31 post (of 31 total)
  • You must be logged in to reply to this topic.