I have an <input type="search"/>
element (no other HTML).
Here's the CSS:
input[type=search] {
border: 1px solid #000;
padding: 4px 12px;
border-radius: 8px;
}
In Firefox 7 it looks great:
However, in Chrome 15 the rounded corners are cut off:
View jsFiddle
Any way I can fix this?
If there are contents within the div that has the curved corners, you have to set overflow: hidden because otherwise the child div's overflow can give the impression that the border-radius isn't working. This answer worked for me.
The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
You just need to add -webkit-appearance: none
to fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With