I have a <div>
element with a fixed height and overflow:auto
.
I want to apply a style only when the content is large enough for it to scroll. Example: I want to apply a inset box shadow to the bottom of the box when it is scrollable, but when the content is not large enough I don't want the box shadow to be visible.
...Preferably not using script and as cross-browser as possible.
UPDATE
fiddle as requested
Thanks