css - Styling md-no-float placeholders -
normally, doing takes care of placeholder styling:
md-input-container[md-no-float]> input::-webkit-placeholder { color: #eee; }
well...not in angular material, i'm assuming? know how around this? have input field html
<md-input-container class="form-group search" md-no-float> <input type="text" placeholder="enter keyword..."> <span class="ti-icon ti-search"></span> </md-input-container>
the text in naturally black default website dark. need placeholder white.
thanks
you close. it's ::webkit-input-placeholder
, not ::-webkit-placeholder
.
cross browser:
md-input-container[md-no-float] ::-webkit-input-placeholder {color: #eee} md-input-container[md-no-float] :-moz-placeholder {color: #eee} md-input-container[md-no-float] ::-moz-placeholder {color: #eee} md-input-container[md-no-float] :-ms-input-placeholder {color: #eee}
Comments
Post a Comment