HTML + CSS achieve rectangular fillet (without picture) - copied from GTalk
GTalk template from the css to pull out in the NEE: P
Reason is actually very simple, and erected rectangular fillet height of 4, then on to the next followed by the (unit px, the frame is given by the width and color are 1 px maintain consistency):
Height of 1, partitions are about 5, only the top rim of div;
Height of 1, about three intervals are only about borderless div;
Height of 1, spacing about 2 were only about borderless div;
Height of 1, spacing about 1 are only about borderless div;
0 intervals are around, only about borderless div - placed;
Height of 1, spacing about 1 are only about borderless div;
Height of 1, spacing about 2 were only about borderless div;
Height of 1, about three intervals are only about borderless div;
Height of 1, partitions are about 5, only the bottom frame of div
Nonsense least, in this code
Css style definition:
Div.panel {…}{
Clear: both;
)
DIV.panel DIV.b0 {…}{
Height: 1px;
Font-size: 1px;
Overflow: hidden;
Margin: 0px 5px;
Border-top: 1px solid # 938F5A;
)
DIV.panel DIV.b1 {…}{
Height: 1px;
Font-size: 1px;
Overflow: hidden;
Margin: 0px 5px;
Border-bottom: 1px solid # 938F5A;
)
DIV.panel DIV.b2 {…}{
Height: 1px;
Font-size: 1px;
Overflow: hidden;
Margin: 0px 3px;
Border-left: 2px solid # 938F5A;
Border-right: 2px solid # 938F5A;
)
DIV.panel DIV.b3 {…}{
Height: 1px;
Font-size: 1px;
Overflow: hidden;
Margin: 0px 2px;
Border-left: 1px solid # 938F5A;
Border-right: 1px solid # 938F5A;
)
DIV.panel DIV.b4 {…}{
Height: 2px;
Font-size: 1px;
Overflow: hidden;
Margin: 0px 1px;
Border-left: 1px solid # 938F5A;
Border-right: 1px solid # 938F5A;
)
Div.panel div.content {…}{
Border-left: 1px solid # 938F5A;
Border-right: 1px solid # 938F5A;
Padding: 0px 5px;
Text-align: left;
Filter: progid: DXImageTransform.Microsoft.Gradient (gradientType ='0 ', startColorStr =' # FFFEEA 'endColorStr =' # F2F4CC ');
/**//* Height: 1px; * /
Background-color: # fff;
)
Div.panel div.content. Caption {…}{
Font-weight: bold;
Display: block;
Border-bottom: 1px solid # CDCDCD;
Margin: 0px 0px 1px 0px;
Padding: 5px 0 0 0;
Width: 100%;
)
DIV.panel DIV.to {…}{
Background-color: # AD0910;
)
DIV.panel DIV.bo {…}{
Background-color: # F1F3CB;
)
DIV.panel DIV.clear {…}{
Clear: both;
Height: 1px;
Overflow: hidden;
)
DIV.panel DIV.break {…}{
Height: 1px;
Margin: 3px 0px 0px 0px;
Overflow: hidden;
)
HTML:
<div Class="panel">
<DIV Class="to b1"> </ DIV>
<DIV Class="to b2"> </ DIV>
<DIV Class="to b3"> </ DIV>
<DIV Class="to b4"> </ DIV>
<DIV Class="content">
<! - Put content here ->
<DIV Class=clear> </ DIV>
</ DIV>
<DIV Class="bo b4"> </ DIV>
<DIV Class="bo b3"> </ DIV>
<DIV Class="bo b2"> </ DIV>
<DIV Class="bo b1"> </ DIV>
<DIV Class="break"> </ DIV>
</ Div>
Tags: css fillet, html, html css, w3c html
Releated Posts
Categories
- CSS Properties (491)
- CSS Tutorial (1154)
- CSS Tutorial By Examples (1201)
- Css+Div Web Design (3274)
- Xhtml and Web Design (1797)
Archives
Pages
Div.panel {…}{
/**//* Height: 1px; * / 





Leave a Reply