-1

I am trying to draw the image attached below using HTML and CSS but I am not able to get my expected output.

<html>
    <style type="text/css">
        #center_cir {
            border-left: 48px solid transparent;
            border-right: 50px solid transparent;
            height: 0;
            width: 100px;
            border-top: 100px solid red;
            border-top-left-radius:60px;
            border-top-right-radius:60px;
        }
        #circle {
            width: 140px;
            height: 120px;
            background: red;
            -moz-border-radius: 60px;
            -webkit-border-radius: 60px;
            border-radius: 60px;
        }
    </style>
    <div id="center_cir">
        <!--<div id="circle">
        </div>-->
    </div>

</html>
Ram
  • 3,092
  • 10
  • 40
  • 56

1 Answers1

0

Something like this should do it for you... Adjust the color and size and you're done.

#center_cir {
     border-left: 48px solid transparent;
  border-right: 50px solid transparent;
  height: 0;
  width: 100px;
  border-top: 100px solid red;
  border-top-left-radius:60px;
    border-top-right-radius:60px;
  position: relative;

}
#center_cir:after {
    background: blue;
    border-radius: 90px 90px 0 0;
    content: "";
    height: 44px;
    position: absolute;
    width: 100px;
}
<div id="center_cir"></div>
Aaron
  • 10,187
  • 3
  • 23
  • 39