I'm putting an inner-shadow on all my controls, inputs and textareas by using the following CSS:
input {
padding: 7px;
-webkit-box-shadow: inset 2px 2px 2px 0px #dddddd;
-moz-box-shadow: inset 2px 2px 2px 0px #dddddd;
box-shadow: inset 2px 2px 2px 0px #dddddd;
}
and, with some other styling, looks like this (in Firefox, and similar in other browsers):
But the padding that helps separate the content from the inner shadow breaks the textarea around the scrollbar:
and if I remove the padding, the text overlaps the shadow, like this:
I can add padding only to the left, solving the overlap with the left shadow but not with the top shadow, while having the scrollbar look good:
I can also add padding everywhere but on the right side, having the text displayed correctly but the toolbar still looks rather odd:
Is there any way to solve this?