Reputation: 4755
I've tried quite a bit of stuff... but the border just won't go away. Works fine if you were to replace type="search" with type="text", but I'd hope that's not what I'm required to do.
I'm trying to kill it with
input{
background:transparent;
border:0;
border-color:transparent;
outline:none;
width:150px;
}
but none of them seem to do the job.
Any ideas?
Upvotes: 6
Views: 6613
Reputation: 2126
You should try
-webkit-appearance: none;
Also see http://37signals.com/svn/posts/2609-customizing-web-forms-with-css3-and-webkit
Upvotes: 4
Reputation: 704
Apparently Webkit has a custom style for search input fields. You can get rid of it directly then apply your own borders. I removed it here and gave it a red border.
input{
-webkit-appearance: none;
border: 1px solid red;
}
I've only looked at this in Chrome.
Upvotes: 12