October 29th, 2012, 08:24 AM
Background shadow of a div container
Hi all, I would need to change the background of a div container. Its transparent but I would need to make it a little bit with shadow like this example –
*** WARNING: Link is Not Work-Safe ***
Notice how the background of the box is still transparent, but it has like a shadow.
How could I do that?
Last edited by Kravvitz; October 29th, 2012 at 11:11 PM.
Reason: added warning about the link
November 5th, 2012, 12:03 PM
If I understand correctly, you want a partially transparent background color. For this you will have to use the rgba model, "a" meaning "alpha" which is the transparency amount. Alpha is written in a decimal.
This example will have a pink background, because 255,0,0 is pure read and .5 alpha means 50% transparent.
Insert this into the website mentioned above: