1

I have a web-based mobile app which uses submit buttons styled with the following CSS class:

.submit_button_green input {
height: 26px;
width: 61px;
border: 0px solid;
font-size: 14px;
color: fff;
background-color: #00CC33;
font-weight: bold;
margin-top: -4px;
text-shadow: 0px 2px 2px #333;
text-align: center;
-webkit-appearance: none;
}

On iPhone 4 (iOS7) corners are still slightly rounded corners and button text is positioned to the right (disappears off the right side of the button). On android devices, button is perfect.

Shiva
  • 20,575
  • 14
  • 82
  • 112

1 Answers1

1

This question has been answered several times already. First set -webkit-appearance to none:

input {
    -webkit-appearance: none;
}

And then set border-radius to 0:

input {
    -webkit-appearance: none;
    border-radius: 0;
}
Community
  • 1
  • 1
Nix
  • 500
  • 1
  • 4
  • 19
  • I had the first (look at the last line of the CSS) but was missing the border-radius part. Thanks that squared up the button corners but the text is still off to the side. Any ideas there? – user3242716 Feb 08 '14 at 22:40
  • Yes, I just added the comment to your reply above: For that, try setting padding. e.g. padding: 5px 15px; – Nix Feb 08 '14 at 22:43