6
I have a input[type=search]
with padding
. How I want to have the same style in different browsers I used -webkit-appearance: none;
but in Safari 7 (Vericks at least) the reset/reset button of the search gets cut. How can I fix this?
I’ve been trying with the dial ::-webkit-search-cancel-button
which works for example for the econder (display: none;
) but I can’t turn it left anymore...
Suggestions?
jsFiddle: http://jsfiddle.net/hjtkarLc/
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" />
Very interesting! Interestingly when I press
x
I see that the cursor does not change to load, as if the image and the area of the screen that accepts click onx
is undone. But adjusting toright: 0px;
worked well. Thank you!– Sergio