Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

box shadow on an ipad / safari

I'm having trouble adding the nice shadow on focus for an input box on my ipad for safari.

Here's my code

/* remember to define focus styles! */
:focus {
    outline: 0;
}    
input[type=text]{
        width: 494px;

        height: 44px;
        line-height: 44px;
        font-size: 24px;
        border: 2px solid #666666;
    }
    input:focus{
      -webkit-box-shadow:0 0 15px #ffffff;
       -moz-box-shadow: 0 0 15px #ffffff;
       box-shadow:0 0 15px #ffffff;
    }

I'm using eric meyer's reset. I want it to look like this: alt text

Any ideas?

Thanks guys.

Jason

like image 901
Jason Avatar asked Oct 10 '10 23:10

Jason


1 Answers

I have the same problem but I found the solution:

-webkit-appearance: none;

However it does not work when there is an inset shadow.

like image 138
Thai Avatar answered Sep 28 '22 09:09

Thai