Published in: CSS
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <style type="text/css"> #container {margin-bottom:30px;} .rtop, .rbottom{display:block;} .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden; background: red;} .r1{margin: 0 5px;} .r2{margin: 0 3px } .r3{margin: 0 2px;} .r4{margin: 0 1px; height: 2px;} .style1 {background: #f00; color: #fff; font-family:verdana;font-size:30px; padding:40px;text-align:center;} </style> </head> <body> <div id="container"> <b class="rtop"> <b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <div class="style1">woop this has rounded corners...</div> <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b> </div> <div id="container"><b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b> <div class="style1">woop this has rounded corners...</div> <b class="rbottom"> <b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b> </b> </div> <div id="container"> <b class="rtop"> <b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b> </b> <div class="style1">woop this has rounded corners...</div> <b class="rbottom"> <b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b> </b> </div> </body> </html>
You need to login to post a comment.
