Could you wrap a or around each input box you wish to style?
Even with jQuery after the page loads if you’re looking to have clean html.
Apply the outer shadow to the label/span and inner shadow to the input box.
You should leave that up! No doubt someone else will be looking for that, how about a mini tutorial on it? I couldn’t find anything describing how to do it anywhere searching! Great work!
The last solution from Jay should be OK, I am used to use that one, you can have unlimited parameters this way.
But there are some downsides of using multiple css3 properties in general, for instance with rounded corners – see example what happens in most chrome installations here http://code.google.com/p/chromium/issues/detail?id=25334 so keep it in mind while testing.
The last solution from Jay should be OK, I am used to use that one, you can have unlimited parameters this way.
But there are some downsides of using multiple css3 properties in general, for instance with rounded corners – see example what happens in most chrome installations here http://code.google.com/p/chromium/issues/detail?id=25334 so keep it in mind while testing.
Yeah. It really sucks that you can’t use inset border when there’s border-radius
You should leave that up! No doubt someone else will be looking for that, how about a mini tutorial on it? I couldn’t find anything describing how to do it anywhere searching! Great work!
Hey, you should probably use jayjdk’s solution unless you’re using border-radius.
What I did:
I added an empty span to the outer container. The outer container is relative positioned, and the span is absolutely positioned inside, width a width and height of 100%. Then since the span and the container are now of the same dimensions, you can apply outset to one, and inset to the other. Problem solved