PDA

View Full Version : Can i add Shadow or Glow to a Div ?


Chapo
10-31-2009, 05:13 AM
Just want to know if i could add glow or shadow to a DIV, like a Wrapper, so all my site wil look more separated from the background.

Corrosive
10-31-2009, 09:34 AM
Using CSS3 techniques you can add a drop shadow. Remember that these will not work on older browsers or that there is any guarantee that they will remain in the spec for CSS3 when/if it becomes standard...

http://corrosiveonline.co.uk/tutorials_css3_tricks.php

use with caution! If you want nailed on compatibility then use images :)

Chapo
10-31-2009, 02:43 PM
Kuros Mate...

What will appear in older browsers, will it affect my content or DIV's ?
Do you know the code ?

domedia
10-31-2009, 06:46 PM
The link with information on the CSS property will give you the information needed to know what code to write.
You need to test this effect on your target browsers to see how it looks. It degrades gracefully, so so browsers will display the shadow, others not.