HTML CSS examples for CSS Widget:Color
partly color the border with css
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .div-p { background-color: #e5e5e5; position: relative; margin: 100px; } .div-c {<!-- w w w . j a v a 2s . c o m--> background: white; position: absolute; z-index: 999; width: 80px; height: 80px; top: 10px; left: 10px; border-radius: 50%; } .div { position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-top-left-radius: 100px; border-top-right-radius: 100px; border-bottom-right-radius: 100px; border-bottom-left-radius: 100px; } .div-1 { position: absolute; clip: rect(0px 100px 100px 0px); -webkit-transform: rotate(0deg); transform: rotate(0deg); } .div-2 { position: absolute; clip: rect(0px 50px 100px 0px); -webkit-transform: rotate(180deg); transform: rotate(180deg); background-color: #009999; } .div-3 { position: absolute; clip: rect(0px 100px 100px 50px); -webkit-transform: rotate(180deg); transform: rotate(180deg); } .div-4 { position: absolute; clip: rect(0px 50px 100px 0px); -webkit-transform: rotate(61.2deg); transform: rotate(61.2deg); background-color: #009999; } </style> </head> <body> <div class="div div-p"> <div class="div-c"></div> <div class="div div-1"> <div class="div div-2"></div> </div> <div class="div div-3"> <div class="div div-4"></div> </div> </div> </body> </html>