corner-joins-1.xhtml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0"?>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>border</title>
  5. <style type="text/css">
  6. div.wrapper {
  7. float: left;
  8. margin-left: 20px;
  9. margin-top: 10px;
  10. }
  11. div.test {
  12. width: 144px;
  13. height: 86px;
  14. border-radius: 72px;
  15. border-top: 18px solid;
  16. border-bottom: 18px solid;
  17. background: red;
  18. margin-bottom: 20px;
  19. }
  20. div.cover, div.cover2 {
  21. position: absolute;
  22. border: 4px solid white; /* cover areas that may differ */
  23. width: 140px;
  24. height: 118px;
  25. border-radius: 63px;
  26. margin-left: -2px;
  27. margin-top: -2px;
  28. }
  29. div.cover2 {
  30. height: 82px;
  31. margin-top: 16px;
  32. border-radius: 63px / 45px;
  33. }
  34. #one {
  35. border-color: blue;
  36. }
  37. #two {
  38. border-bottom-color: blue;
  39. }
  40. #three {
  41. border-color: blue;
  42. border-left: 0.01px solid red;
  43. border-right: 0.01px solid red;
  44. }
  45. #four {
  46. border-bottom-color: blue;
  47. border-left: 0.001px solid red;
  48. border-right: 0.001px solid red;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <div class="wrapper">
  54. <div class="cover"></div>
  55. <div class="cover2"></div>
  56. <div class="test" id="one"></div>
  57. <div class="cover"></div>
  58. <div class="cover2"></div>
  59. <div class="test" id="two"></div>
  60. </div>
  61. <div class="wrapper">
  62. <div class="cover" style="width: 142px"></div>
  63. <div class="cover2" style="margin-left: -1px; border-radius: 61px / 45px"></div>
  64. <div class="test" id="three"></div>
  65. <div class="cover"></div>
  66. <div class="cover2"></div>
  67. <div class="test" id="four"></div>
  68. </div>
  69. </body>
  70. </html>