We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

damarev on 11/24/06


Tagged


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

peterF
vali29


rounded corners...


Published in: CSS 


  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title></title>
  5. <style type="text/css">
  6.  
  7. #container {margin-bottom:30px;}
  8. .rtop, .rbottom{display:block;}
  9. .rtop *, .rbottom *{display: block; height: 1px; overflow: hidden; background: red;}
  10. .r1{margin: 0 5px;}
  11. .r2{margin: 0 3px }
  12. .r3{margin: 0 2px;}
  13. .r4{margin: 0 1px; height: 2px;}
  14.  
  15. .style1 {background: #f00; color: #fff; font-family:verdana;font-size:30px; padding:40px;text-align:center;}
  16.  
  17. </style>
  18. </head>
  19. <body>
  20.  
  21. <div id="container"> <b class="rtop"> <b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  22. <div class="style1">woop this has rounded corners...</div>
  23. <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b> </div>
  24. <div id="container"><b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b>
  25. <div class="style1">woop this has rounded corners...</div>
  26. <b class="rbottom"> <b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b> </b> </div>
  27. <div id="container"> <b class="rtop"> <b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b> </b>
  28. <div class="style1">woop this has rounded corners...</div>
  29. <b class="rbottom"> <b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b> </b> </div>
  30.  
  31. </body>
  32. </html>

Report this snippet 

You need to login to post a comment.