html - transparent png not rendering as transparent? -


i saved image transparent png nothing can seems fix it!?! ideas???

enter image description here

it should this:

enter image description here

here copy of image in gimp showing it's indeed transparent:

enter image description here

finally, old code:

the markup:

<form class="search" action="search.php"><input class="search" type="text" name="search" id="searchbox"/></form> 

search box css:

.search, .search:active, .search:focus, .search:visited {     position: absolute;     color: #fff;     top: 3px;     width: 368px;     right: 9%;     font-size: 28px;     z-index: 3;     border-radius: 20px;     /* box-shadow: inset -2px 0px 1px rgba(0,0,0,.8); */     text-indent: 10px;     text-shadow: 0px -2px 3px rgba(0, 0, 0, .7);     background-color: #00d4c7; } 

the search icon css itself:

pseudo ::before element .search:before {     content: "";     position: absolute;     top: 7px;     left: 268px;     background-image: url("images/icon-search.png");     background-color: rgb(0, 185, 171);     width: 46px;     height: 30px;     z-index: 4; } 

note: if remove class search form, removes image, if remove class search input element still renders funky shade on image...any ideas?

edit 1: if suggested setting explicit dimensions of image (as did other pseudo elements no problem) not resolve issue. i've submitted project @ point it's matter of me wanting know happened , how can fix this. resorted css hack changed brightness closer match [with faint outline still 😞 ]

enter image description here

edit 2: show me js fiddle!

you did give image background-color: rgb(0, 185, 171); #00b9ab

and searchbox background-color: #00d4c7; rgb(0, 212, 199)


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -