CSS stitched implementation effect

Source: Internet
Author: User

The code is as follows:

. Stitched{padding:20px;margin:10px;background:#ff0030;Color:#fff;font-size:21px;Font-weight:Bold;Line-height:1.3em;Border:2px Dashed #fff;Border-radius:10px;Box-shadow:0 0 0 4px #ff0030, 2px 1px 6px 4px Rgba (Ten, 0, 0.5);Text-shadow:-1px-1px #aa3030;Font-weight:Normal;}

The effect is as follows:

Knowledge Points: Border-radius + Box-shadow to achieve.

Box-shadow:inset x-offset y-offset Blur-radius spread-radius color.

Inset: Turns the outer shadow into an inner shadow

X-offset: Shadow Horizontal Offset

Y-offset: Vertical offset of shadow

shadow Blur radius: This parameter is optional, but its value can only be positive, and if its value is 0 o'clock, indicates that the shadow does not have a blur effect, the greater the value of the shadow the more blurred the edge;

Shadow Expansion radius: This parameter is optional, its value can be positive negative, if the value is positive, the entire shadow expands, and the inverse value is negative, then shrinks.

CSS stitched implementation effect

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.