css3-(Box-shadow) property

Source: Internet
Author: User

"Box-shadow Properties":

is a CSS3 property that is used to create a shadow effect.
syntax: box-shadow:offset-x offset-y blur spresd color position;
Property Value Description:
offset-x offset-y refers to the horizontal offset of the element;
Blur: Represents the blur radius of the shadow;
Spread: Shadow size (distance from element to shadow), positive values extend shadows in each direction of an element by a specified number, and negative values cause the shadow to shrink more than its own element

size is also small.
Color: The colour value of the shadow;
Position: Optional, indicates the location of the shadow, the default value is the outer shadow, and the keyword inset refers to the inner shadow.

multiple Shadows: Each Shadow is separated by commas;
round Shadows: Through Border-radius and Box-shadow and with the finish.
elements created with Box-shadow are border-wrapped and do not interfere with the layout of the page.
Example:
outer Shadow

. Box {            margin:0 Auto;             width:200px;             height:200px;             background-color:yellow;             box-shadow:10px 10px 10px 0px #999;        }



Inner Shadow

. Box {            margin:0 Auto;             width:200px;             height:200px;             background-color:yellow;             box-shadow:20px 10px 10px 10px #999 inset;        }

Here I only give two simple examples, have a lot of effect, explore more.

css3-(Box-shadow) property

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.