CSS3 Text-shadow font Shadow How to use

Source: Internet
Author: User
CSS3 's Text-shadow style is to set the text shadow effect, originally in the CSS2 has this property, in the CSS3 of the text shadow again application, then we will look at how to use Text-shadow.

CSS3 words:

Text-shadow

Grammatical structure

div{text-shadow:5px 2px 6px #000;}

Set the text shadow effect in the Div box to start with the shadow effect on the left 5px and the distance above 2px, while the shadow size range is 6px and the shadow Color is black (#000).

The text display shadow effect has a total of 4 values, the first represents the distance from the left to show the shadow effect, the second value represents how much distance from the beginning to show the shadow effect, the third value represents the shadow range size, the fourth value is the shadow effect color.

Case HTML code

<! DOCTYPE html> 

Corresponding CSS code:

.txt {text-shadow:5px 1px 6px #F93}. txt2 {text-shadow:1px 1px 1px #000; padding:10p x 0; Color: #FFF; Background: #CCC} 

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.