Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Safari Mobile from giving input buttons rounded corners

I guess the subject says it all. I have a web application when viewed on an Iphone, Ipod or Ipad, input submit buttons have rounded corners. Is there a way to stop this?

like image 699
Newbie Fletcher Avatar asked Mar 10 '11 17:03

Newbie Fletcher


3 Answers

If you add...

input, textarea {
  -webkit-appearance: none;
  border-radius: 0;
}

Then your buttons will inherit any CSS styles that you have applied for other browsers.

like image 153
methodofaction Avatar answered Oct 02 '22 06:10

methodofaction


Didn't work for me, the -webkit-appearance:none.

This does:

input[type=submit] {
    -webkit-border-radius:0px;
}

I had the same issue with rounded corners on a button with background image, just on the iPhone.

like image 36
Roel Avatar answered Oct 02 '22 07:10

Roel


You can try to use following CSS:

-webkit-appearance:none;

More info: http://trentwalton.com/2010/07/14/css-webkit-appearance/

like image 41
dthukka Avatar answered Oct 02 '22 06:10

dthukka