CSS3 Introduction to Mastery (i)

Source: Internet
Author: User

CSS is used to control the style and layout of Web pages.

CSS3 is the latest CSS standard.

I. CSS3 border

Instance

To add a fillet to a DIV element:

DIV{BORDER:2PX solid;border-radius:25px;-moz-border-radius:25px; * * Old Firefox */}
CSS3 Border Shadow

In CSS3, Box-shadow is used to add a shadow to a box:

Instance

To add a box shadow to a DIV element:

div{box-shadow:10px 10px 5px #888888;}
CSS3 Border Picture

With the Border-image property of CSS3, you can use a picture to create a border:

The Border-image property allows you to specify a picture for the border!

The original picture used to create the above border:

Instance

Use a picture to create a border around a DIV element:

Div{border-image:url (border.png) Round;-moz-border-image:url (border.png) and round;/* Old Firefox */- Webkit-border-image:url (border.png) round; /* Safari and Chrome */-o-border-image:url (border.png) round; /* Opera */}

 

Properties Description CSS
Border-image Sets the shorthand property for all border-image-* properties. 3
Border-radius Sets the shorthand properties for all four Border-*-radius properties. 3
Box-shadow Add one or more shadows to the box. 3

CSS3 Introduction to Mastery (i)

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.