.textShadowRgb { text-shadow: 4px 4px 2px rgba(0,0,0, 0.8); } .textShadowHex { text-shadow: 4px 4px 2px #000000; }.divShadow { -moz-box-shadow: 1px 1px 3px 2px #000000; -webkit-box-shadow: 1px 1px 3px 2px #000000; box-shadow: 1px 1px 3px 2px #000000; }
Text Shadow with RGB Values
<p style="text-shadow: 4px 4px 2px rgba(0,0,0, 0.8);">Text here</p>
This text has shadow with rgb values.
Text Shadow with Hex Values
<p style="text-shadow: 4px 4px 2px #000000">Text here</p>
This text has shadow with hex values.
Div Box Shadow
<div style="-moz-box-shadow: 1px 1px 3px 2px #000000; -webkit-box-shadow: 1px 1px 3px 2px #000000; box-shadow: 1px 1px 3px 2px #000000;">
Div content here</div>
This div box has shadow with color #000000