PDA

View Full Version : simple css round corners


edbr
03-09-2009, 05:44 AM
stumbled on this , works on most browsers haven't tries 1e6 though
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<style type="text/css">
#rnd_container {background: #FFFFFF; margin:1px;}

.rnd_top, .rnd_bottom {display:block; background:#FFFFFF; font-size:1px;}
.rnd_b1, .rnd_b2, .rnd_b3, .rnd_b4 {display:block; overflow:hidden;}
.rnd_b1, .rnd_b2, .rnd_b3 {height:1px;}
.rnd_b2, .rnd_b3, .rnd_b4 {background:#FFFFFF; border-left:1px solid #FF0000; border-right:1px solid #FF0000;}
.rnd_b1 {margin:0 5px; background:#FF0000;}
.rnd_b2 {margin:0 3px; border-width:0 2px;}
.rnd_b3 {margin:0 2px;}
.rnd_b4 {height:2px; margin:0 1px;}

.rnd_content {
display:block;
border:0 solid #FF0000;
border-width:0 1px;
padding: 4px;
background:#FFFFFF;
color:#000000;
}
#text-box {
float:left;
width:100%;
padding:3px;
margin-bottom:15px;
overflow:hidden;
background:#FFFFFF;
}
</style>

</head>

<body>
<div id="text-box">
<div id="rnd_container">
<b class="rnd_top"><b class="rnd_b1"></b><b class="rnd_b2"></b><b class="rnd_b3"></b><b class="rnd_b4"></b></b>
<div class="rnd_content">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</div>
<b class="rnd_bottom"><b class="rnd_b4"></b><b class="rnd_b3"></b><b class="rnd_b2"></b><b class="rnd_b1"></b></b>
</div>
</div>
</body>
</html>