CSS border shadow effect

Source: Internet
Author: User

CSS border shadow effect

CSS border shadow effect

The following uses css to implement the shadow effect, so that you can directly add the code to your friends.

# Shadow1 {
Width: 200px;
Height: 100px;
Color: white;
Background-color: red;
Box-shadow: 5px-5px 1px 1px #000;
-Webkit-box-shadow: 5px-5px 1px 1px #000;
-Moz-box-shadow: 5px 5px 1px 1px #000;
/* For IE 8 */
-Ms-filter: progid: DXImageTransform. Microsoft. Shadow (Strength = 5, Direction = 120, Color = '#1000 ');
/* For IE 5.5-7 */
Filter: progid: DXImageTransform. Microsoft. Shadow (Strength = 5, Direction = 125, Color = '#1000 ');
}


# Shadow2 {
Width: 420px;
Height: pixel PX;
Background: url(1.jpg) no-repeat;
Margin-tZ tags? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vcDogMjBweDs8YnI + kernel + Cn08YnI + c1_vcd4kpha + pgltzybzcm9" http://www.2cto.com/uploadfile/Collfiles/20140831/20140831093729120.png "alt =" ">

The Shadow example is here. The article is simple. If you have any shortcomings, please correct them. Thank you...

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.