I am trying to draw a shape exactly like the one given in the image below
This is my html and css code, its shape is somewhat similar to this but in single color I don't know how to do it in multi color. Can anyone explain me how to do this. Thanks in advance.
.right-angle-triangle-semicircle { width: 100px; height: 100px; background: #FFA6DF; border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 50%; border-bottom-left-radius: 0; }
<div class="right-angle-triangle-semicircle"></div>
Just use
background: linear gradient
Here you can view documentation about Linear-Gradient
Using only a single element, you can use some CSS tricks to achieve this.
There is no magic number and this also applies to different element sizing.
Also, you can skip all border radius declarations into one line.
Border radius: 0 0 50% 0;