BelowCode:
First:
<HTML>
<Head>
<Style>
# {
Border-left: 1px #333 solid;
Border-Right: 1px #333 solid;
Width: 300px;
Height: 500px;
}
. B {
Height: 1px;
Overflow: hidden;
Border-left: 1px #333 solid;
Border-Right: 1px #333 solid;
}
</Style>
</Head>
<Body>
<Div>
<Div class = "B" style = "margin-left: 3px; width: 294px; Background: #333"> </div>
<Div class = "B" style = "margin-left: 2px; width: 296px;"> </div>
<Div class = "B" style = "margin-left: 1px; width: 298px;"> </div>
<Div id = "A">
</Div>
</Div>
</Body>
</Html>
Second:
<HTML>
<Head>
<Title> CSS rounded corner effect </title>
<Meta http-equiv = "Content-Type" C>
<Style type = "text/CSS">
Div. roundedcorner {Background: # 9bd1fa}
B. rtop, B. rbottom {display: block; Background: # fff}
B. rtop B, B. rbottom B {display: block; Height: 1px; overflow: hidden; Background: # 9bd1fa}
B. R1 {margin: 0 5px}
B. R2 {margin: 0 3px}
B. R3 {margin: 0 2px}
B. rtop B. R4, B. rbottom B. R4 {margin: 0 1px; Height: 2px}
</Style>
</Head>
<Body>
<Div class = "roundedcorner">
<B class = "rtop"> <B class = "R1"> </B> <B class = "R2"> </B> <B class = "R3"> </B> <B class = "r4"> </B>
<Br> corner box without images <br>
<B class = "rbottom"> <B class = "r4"> </B> <B class = "R3"> </B> <B class = "R2"> </B> <B class = "R1"> </B>
</Div>
</Body>
</Html>
Third:
<Style>
. Divfloat {
Margin: 0 0 10px 0;
Background: transparent;
}
. Roundtop,. roundbottom {
Display: block;
Font-size: 1px;
Width: 100%;
Background: transparent;
}
. Roundb1,. roundb2,
. Roundb3,. roundb4 {
Display: block;
Overflow: hidden;
}
. Roundb1,. roundb2,. roundb3 {
Height: 1px;
Border-left: 1px solid # 9b9b9b;
Border-Right: 1px solid # 9b9b9b;
Background: # f3f3f3;
}
. Roundb1 {margin: 0 5px; Background: # 9b9b9b ;}
. Roundb2 {margin: 0 3px; border-width: 0 2px ;}
. Roundb3 {margin: 0 2px ;}
. Roundb4 {
Height: 2px;
Margin: 0 1px;
Border-left: 1px solid # 9b9b9b;
Border-Right: 1px solid # 9b9b9b;
Background: # f3f3f3;
}
. Roundboxcontent {
Display: block;
Padding: 5px;
Height: 100%;
Overflow: hidden;
Border: 0 solid # 9b9b9b;
Border-width: 0 1px;
Background: # f3f3f3;
}
</Style>
This is the content of the rounded Div. ..