C#-webform-css Box-shadow To add a shadow effect to a border

Source: Internet
Author: User

Box-shadow Introduction

CSS3 can easily add a shadow effect to an element using the Box-shadow property, Box-shadow can set multiple sets of effects, each set of parameter values separated by commas.

Grammar:

box-shadow:x-shadow  y-shadow  blur  spread color inset;

Parameter description:

    • X-shadow: Sets the shadow horizontal offset value of an object, which can be px, EM, or percent, allowing negative values.
    • Y-shadow: Sets the shadow vertical offset value of an object, which can be px, EM, or percent, allowing negative values.
    • Blur: Used to set the border shadow radius size.
    • Spread: Extend the radius, set the size of the shadow; This parameter is optional and the default value is 0.
    • Color: Sets the colors of the shadow;
    • Inset: This parameter is not set by default. By default it is an outer shadow, and inset represents an inner shadow.

Color Shadow:

box-shadow:0px 0px 10px red,2px 2px 10px 10px yellow,4px 4px 12px 12px Green;

C#-webform-css Box-shadow To add a shadow effect to a border

Related Article

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.