html - Draw a quarter circle and a line with css -
i need make box using css containing arc shown in image . want using pure css. able make arcs not able draw line. here html , css code.
<style type="text/css"> .left_arc{ border-bottom: 1px solid #d0bfa6; border-radius: 0 0 360px 0; border-right: 1px solid #d0bfa6; float: left; height: 11px; padding-top: 1px; width: 11px; } .right_arc{ border-bottom: 1px solid #d0bfa6; border-left: 1px solid #d0bfa6; border-radius: 0 0 0 360px; float: left; height: 11px; padding-top: 1px; width: 11px; } .text_arc { background: none repeat scroll 0 0 #feeeea; border-top: 1px solid; color: #a29061; float: left; font-family: times new roman; font-size: 16px; font-style: italic; letter-spacing: 1px; padding-left: 18px; padding-top: 6px; text-transform: uppercase; width: 88px; } </style> <div class="main_style"> <div class="left_arc"></div> <div class="text_arc">canada</div> <div class="right_arc"></div> </div>
here output of code.
add corner class left_arc , right_arc divs.
that shown in jsbin.
.text_arc { background: none repeat scroll 0 0 #feeeea; border-top: 1px solid; color: #a29061; float: left; font-family: times new roman; font-size: 16px; font-style: italic; letter-spacing: 1px; padding-left: 18px; padding-top: 6px; text-transform: uppercase; width: 100px; } .corner { position: absolute; height: 10px; width: 10px; border: 1px solid #333; background-color: #fff; } .left_arc { top: -1px; left: -1px; border-radius: 0 0 100% 0; border-width: 0 1px 1px 0; } .right_arc { top: -1px; left: 110px; border-radius: 0 0 0 100%; border-width: 0 0 1px 1px; } .main_style { position: relative; margin: 30px; width: 119px; height: 28px; background: #ccc; border: 1px solid #333; }
Comments
Post a Comment