Let’s say I have a simple div with some paragraphs inside.

I want to achieve a fading effect on the bottom of the div.

I have tried to set up a white shadow
box-shadow: inset 0 -15px 10px white;
but obviously this didn’t work, since the box-shadow always appears under the text.
How can I accomplish this in pure CSS?
Thanks.
I was able to replicate the effect with CSS only, but it’s a little hackish:
http://jsfiddle.net/EaXTB/1/
I put two divs as siblings:
And positioned them absolutely:
The only trouble is that for this to work, you must specify the height for the
.shadowclass. If it will always be the same size, then you can use this. Otherwise using a png overlay might be more effective.Something like: