Css rounded corner code

Source: Internet
Author: User
Tags relative
Tip: you can modify some code before running

You can use the rounded corner style again and set different classes for different content. You can change the background style. testboxcon uses a "relative" location, it mainly serves as a reference for multiple content Positioning. The outermost div class = "testlayer" is mainly used to provide the rounded corner with a "area" and the rounded corner in FF during the large layout, compatible display. In addition, it is recommended that you set the radians to 5*5 px when creating rounded corners. 10 px radians are hard to understand and are difficult to calculate.<style type="text/css"><!--#ibox01 {overflow: hidden;height: 1px;margin-right: 5px;margin-left: 5px;background-color: #CC0000;}#ibox02 {height: 1px;margin-right: 3px;margin-left: 3px;border-right-width: 2px;border-left-width: 2px;border-right-style: solid;border-left-style: solid;border-right-color: #CC0000;border-left-color: #CC0000;overflow: hidden;}#ibox03 {height: 1px;margin-right: 2px;margin-left: 2px;border-right-width: 1px;border-left-width: 1px;border-right-style: solid;border-left-style: solid;border-right-color: #CC0000;border-left-color: #CC0000;overflow: hidden;}#ibox04 {overflow: hidden;height: 1px;margin-right: 1px;margin-left: 1px;border-right-width: 1px;border-left-width: 1px;border-right-style: solid;border-left-style: solid;border-right-color: #CC0000;border-left-color: #CC0000;}#ibox05 {overflow: hidden;height: 1px;margin-right: 1px;margin-left: 1px;border-right-width: 1px;border-left-width: 1px;border-right-style: solid;border-left-style: solid;border-right-color: #CC0000;border-left-color: #CC0000;}#boxcon {border-right-width: 1px;border-left-width: 1px;border-right-style: solid;border-left-style: solid;border-right-color: #CC0000;border-left-color: #CC0000;}.testlayer {height: 200px;width: 300px;}.testboxbg {background-color: #666666;}.testboxcon {height: 190px;background-color: #666666;position: relative;}--></style><div class="testlayer"><div id="ibox"> <div id="ibox01" class="testboxbg"></div> <div id="ibox02" class="testboxbg"></div> <div id="ibox03" class="testboxbg"></div> <div id="ibox04" class="testboxbg"></div> <div id="ibox05" class="testboxbg"></div> <div id="boxcon" class="testboxcon"></div> <div id="ibox05" class="testboxbg"></div> <div id="ibox04" class="testboxbg"></div> <div id="ibox03" class="testboxbg"></div> <div id="ibox02" class="testboxbg"></div> <div id="ibox01" class="testboxbg"></div></div></div>
Tip: you can modify some code before running
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.