Introduction to box-shadow in CSS3, css3box-shadow

Source: Internet
Author: User

Introduction to box-shadow in CSS3, css3box-shadow

We usually use box-shadow to set box shadow, but some attributes are not used. This article will analyze the box-shadow attributes one by one.
Syntax

Copy the content to the clipboard using CSS Code.
E {box-shadow:inset x-offset y-offset blur-radius spread-radius color}  

  

That is:

Object selector {box-shadow: Projection Method X axis offset Y axis offset shadow blur radius shadow extended radius shadow color}

Inset Projection Method
This parameter is an optional value. If no value is set, the default projection method is the outer shadow. If its unique value is "inset", the projection is the inner shadow;
X-offset
Horizontal offset;
Y-offset
Vertical offset;
Blur-radius fuzzy radius
Optional. It can only be an integer. The greater the value, the blurrier the shadow;
Spead-radius extension radius
Optional. It can be a positive or negative number. If it is a negative number, the entire Shadow will be reduced;
Color shadow color
Optional. If no value is set, the browser uses the default color. The default color is generally black.

Generally, we seldom use the inset and spead-radius attributes. If we use these two attributes well, we can produce very cool results.

  • Text Effects
  • Image magnifiers
  • Juqery focus chart
  • Waterfall stream
  • Ad floating code
  • Online Customer Service
  • Webpage navigation menu

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.