I have input[type=search]
with padding
. As I want to have the same style in different browsers I used -webkit-appearance: none;
but in Safari 7 (mavericks at least) The button that does reset / cancel the search is cut off. How can I fix this?
I have been trying with the ::-webkit-search-cancel-button
selector which works for example for econder ( display: none;
) but I can not change it to the left ...
Suggestions?
jsFiddle: link
The jsFiddle setup:
CSS
input {
float: left;
clear: both;
margin: 1em;
}
input[type="search"] {
-webkit-appearance: none;
}
#withPadding {
padding: 0.7em;
}
HTML
<input type="search" value="I'm ok" />
<input type="search" id="withPadding" value="I'm cutoff" />