Skip to content

24 ways to impress your friends

Vote up?

Chris Hester

Good article, well explained!

I found another neat trick CSS gradients give us. If one of the colours is set to “transparent” then it takes on the colour underneath. So you get a fade between the background colour and the gradient stop colour.

My point though is this: could transparency be used over images? That might give us a way to fade them out at the top of a page, for example.

Food for thought!