user1026090 user1026090 - 2 months ago 21
CSS Question

inset box-shadow for inputfield

Can an inset box-shadow work on an inputfield?

JsFiddle: http://jsfiddle.net/hKTq2/

Answer

Yes, this is something I was working on the other day, it is indeed possible.

input
{
  box-shadow:inset 0 0 5px 5px #888;
  background: #fff;
}

You just need to have a background set for the shadow to fall onto :)

http://jsfiddle.net/Kyle_Sevenoaks/ZCq6w/