CSS defines a div rounded border

Source: Internet
Author: User

 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" &NBSP;

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<meta http-equiv= "Content-type" content= "text/html"; gb2312 "/>
<title>testdiv</title>
<style>
#d1, #d3, #d4 {
margin:5px 0px;
Width : 200px;
Background-color: #eee;
}
#d1 {
border:1px solid #444;
height:100px;
padding:0px 15px;
}
#d3, #d4 {
margin-top:0px
margin-bottom:0px
border-left:1px solid #444;
border-right:1px Solid # 444;
}
. m{
height:100px
width:200px
padding:0px 15px;
position:relative;
}
#d3. m{
margin:-4px 0px;
}
#d4. m{
margin:-5px 0px;
}
. rt,.rb{
Display:block
width:232px;
margin-left:0px;
margin-right:0px;
}
. rt{
margin-top:5px;
}
. rb{
margin-bottom:5px;
}
. RT *,.rb *{
Display:block
height:1px;
   Overflow:hidden;
Background-color: #eee;
border-left:1px solid #444;
border-right:1px solid #444;
}
. r1{
margin:0 5px;
Background-color: #444;
}
. r2{
margin:0 3px;
border-width:0px 2px;
}
. r3{
margin:0 2px;
}
. r4{
margin:0 1px;
height:2px;
}
. rb1{
margin:0 6px;
Background-color: #444;
}
. rb2{
margin:0 4px;
border-width:0px 2px;
}
. rb3{
margin:0 3px;
}
. rb4{
margin:0 2px;
}
. rb5{
margin:0 1px;
height:2px;
}
</style>

<body>
<div id= "D1" >R=...</DIV>
<b class= "RT" ><b class= "R1" ></b><b class= "R2" ></b><b class= "R3" ></B><B&NBSP;
class= "R4" ></b ></b>
<div id= "D3"
<div class= "M" >R=5</DIV>
</div>
<b class= "RB" ><b class= "R4" ></b><b class= "R3" ></b><b class= "R2" ></B><B&NBSP;
class= "R1" ></b></b>
<b class= "RT" ><b class= "Rb1" ></b><b class= "Rb2" > </b><b class= "Rb3" ></b><b 
class= "Rb4" ></b><b class= "Rb5" ></b> </b>
<div id= "d4"
<div class= "M" >R=6</DIV>
</div>
<b class= "RB" > <b class= "rb5" ></b><b class= "Rb4" ></b><b class= "Rb3" ></B><B&NBSP;
Class = "Rb2" ></b><b class= "Rb1" ></B></B>
</body>

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.