Shadows
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sed mattis leo. Nullam lobortis consequat libero ut consectetur. Donec pellentesque vulputate nunc, vitae elementum ipsum feugiat sed. Integer sagittis pretium ipsum, semper bibendum velit vehicula eu. Sed adipiscing, neque ac pulvinar viverra, ipsum mauris sagittis mi, eget ultrices diam erat ac enim. Pellentesque elit lacus, interdum eget tempor eget, dapibus nec sem. Fusce tristique, enim quis volutpat semper, nibh nisi imperdiet nisl, vitae placerat enim dui a enim. Fusce sit amet augue lectus, vel cursus velit.
Box Shadow
The property takes 3 lengths and a color as it’s attributes
- <horizontal offset>
- positive means the shadow will be on the right of the box, a negative offset will put the shadow on the left of the box
- <vertical offset>
- a negative one means the box-shadow will be on top of the box, a positive one means the shadow will be below the box
- <blur radius>
- if set to 0 the shadow will be sharp, the higher the number, the more blurred it will be
{-moz-box-shadow:5px 5px 5px #999}
{-webkit-box-shadow: 5px 5px 5px #999}Box Shadow with Negative Numbers
{-moz-box-shadow:-5px -5px 5px #999}
{-webkit-box-shadow:-5px -5px 5px #999}Using a Shadow as Glow
If the slash followed by a second set of radii is specified, the values before the slash are used to specify the horizontal radius, while the values after the slash specify the vertical radius. If the slash is omitted, then the same values are used to set both horizontal and vertical radii.
{-moz-box-shadow:0px 0px 5px #333}
{-webkit-box-shadow:0px 0px 5px #333}Text Shadow
If the slash followed by a second set of radii is specified, the values before the slash are used to specify the horizontal radius, while the values after the slash specify the vertical radius. If the slash is omitted, then the same values are used to set both horizontal and vertical radii. This feature is NOT new in CSS3; it was originally proposed in CSS2. Safari had it from version 1.
{text-shadow:15px 10px 2px #999}
{text-shadow:15px 10px 2px #999}