Building CSS3 Simulated Lightsource on Background
Posted
by Volomike
on Stack Overflow
See other posts from Stack Overflow
or by Volomike
Published on 2010-06-16T20:54:49Z
Indexed on
2010/06/16
22:42 UTC
Read the original article
Hit count: 296
Is there a way to take a DIV that has a background image on it, then apply a CSS3 gradient on it to simulate a lightsource?
The reason I ask was because I was thinking of making the BODY tag on a page use a repeating background pattern, apply the CSS3 gradient lightsource on it, and then stick a white DIV on top of that where all the page content would go.
For those without CSS3, it would degrade nicely into just a white DIV on top of a repeating background.
© Stack Overflow or respective owner