element to add rounded corners

Source: Internet
Author: User

-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;

This example is just for the tag to work with Mozilla-based browsers such as Mozilla Firefox and Webkit-based (such as Apple Safari). If you prefer, you can set the above 3 properties to different values and have the styles show different effects in Firefox and Google Chrome.

You can also create a shadow on the <div>. To do this, you can use the following 3 properties (again, be sure to handle a variety of browsers):

-webkit-box-shadow:8px 8px 6px #AAAAAA,-moz-box-shadow:8px 8px 6px #AAAAAA, box-shadow:8px 8px 6px #AAAAAA;

in this case, the first property is a horizontal shadow, the second is a vertical shadow, the third is the amount of blur, and the fourth is the color of the shadow. You can place another property between the blur amount and the shadow (another size value that is related to the Shadow's coverage), but this property does not seem to be widely used.

element to add rounded corners

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.