CSS3 fillet border and border picture effect instance sharing

Source: Internet
Author: User
The main points of this study are as follows:

• Rounded Corners Border-radius
• Box Shadow Box-shadow
• Border Picture Border-image

1. Fillet Border-radius

The <div>border-radius property allows you to add rounded borders to elements! </div>    Div {       width:200px;       height:100px;       padding:20px;       border:1px solid red;       border-radius:25px;      }

2. Box Shadow Box-shadow

<div></div>    Div {       width:200px;       height:100px;       background:red;       /*x axis offset y-axis offset blur degree shadow color */       box-shadow:10px 10px 5px #000;   }

3. Border Picture Border-image

HTML section

<p><b> Note: </b> Internet Explorer does not support the Border-image property.  the </p> <p> border-image property is used to set the border of a picture. </p>    <div id= "Round" > here, the image is tiled (repeated) to fill the area. </div>  <br>  <div id= "Stretch" > here, the image is stretched to fill the area. </div>    <p> This is the picture material we use:</p>  

CSS Section

div {width:250px;       padding:10px 20px;   border:15px solid translate; } #round {/*safari*//* picture source picture The width of the inward offset picture is used to specify the amount of Border-image-area to draw outside the border */-webkit-border-image : URL (...       /images/border.png) round; /*opera*/-o-border-image:url (..       /images/border.png) round; Border-image:url (..   /images/border.png) round; } #stretch {-webkit-border-image:url (..       /images/border.png) stretch; -o-border-image:url (..       /images/border.png) stretch; Border-image:url (..   /images/border.png) stretch; }
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.