240

I noticed that if I style my buttons with CSS using radius, colors and borders, they look good but in the iphone/ipad/ipod they look terrible...shouldn't be the same rendering as in Safari Desktop??

enter image description here

Francesco
  • 23,000
  • 25
  • 96
  • 139
  • 2
    possible duplicate of [css styling for input buttons on ipad / iphone](http://stackoverflow.com/questions/5449412/css-styling-for-input-buttons-on-ipad-iphone) – skolima Oct 21 '12 at 19:05

3 Answers3

491

oops! just found myself: just add this line on any element you need

   -webkit-appearance: none;
Francesco
  • 23,000
  • 25
  • 96
  • 139
51

Add this code into the css file:

input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

This will help.

Samvel Aleqsanyan
  • 2,495
  • 4
  • 18
  • 27
subindas pm
  • 1,894
  • 18
  • 15
10

The above answer for webkit appearance worked, but the button still looked kind pale/dull compared to the browser on other devices/desktop. I also had to set opacity to full (ranges from 0 to 1)

-webkit-appearance:none;
opacity: 1

After setting the opacity, the button looked the same on all the different devices/emulator/desktop.

drewmerk
  • 142
  • 2
  • 7
Priyank Thakkar
  • 4,280
  • 16
  • 49
  • 87