html - linear-gradient background with color issue -
i have textbox linear gradient background text color not appearing 100% white.
some kind of opacity working behind text have not declared opacity anywhere.
css code:
input[type="search"] { color: #ffffff; height: 35px; margin: 0; padding: 10px; border: none; box-shadow: none; background: rgba(0, 0, 0, 0) linear-gradient(0deg, #820462 0%, #992478 100%); font-size:1rem; } input[type="search"]:focus { background: transparent; }
here demo.
any highly appreciated. in advance.
your color:white
; affect text typed input
field... search text placeholder
- need target placeholder , add color - described here in more detail.
here code.
input[type="search"] { color: white; height: 35px; margin: 0; padding: 10px; border: none; box-shadow: none; background: rgba(0, 0, 0, 0) linear-gradient(0deg, #820462 0%, #992478 100%); font-size: 1rem; } input[type="search"]:focus { background: transparent; color: black; border: 1px solid black; } ::-webkit-input-placeholder { /* webkit browsers */ color: white; } :-moz-placeholder { /* mozilla firefox 4 18 */ color: white; opacity: 1; } ::-moz-placeholder { /* mozilla firefox 19+ */ color: white; opacity: 1; } :-ms-input-placeholder { /* internet explorer 10+ */ color: white; }
<input type="search" class="search-field" placeholder="search" value="" name="s" />
Comments
Post a Comment