html - Form input border-radius not working properly -


i testing css on forms , bumped on this: http://jsfiddle.net/gespinha/z4a4g/1/

as try make form inputs round-cornered, assume whole input round object.

border-radius:50%; 

any suggestion on how achieve correctly? why happen?

giving px value works best in scenario. percentage typically used when creating shapes (in case, circle)

input{     border-radius:10px; } 

i believe this you're going for. giving borders percentage mean different based on width , height. using px gives consistent look.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -