I am trying to create the button similar to the button shown in image.
Button has 2 colours inside it (like background color). 1 is transparent and other color is light-orange.
The light-orange color has only top-right border radius.
For easy understanding, I attached the image, I want the same exact this design.
Your help will be greatly appreciated. Thanks
I have tried gradient technique but I don’t know how to make the color’s border-radius
.
2
Answers
try to use "border-top-right-radius" of left and "border-top-left-radius" of right
One way to achieve this is with a background image on the button. Essentially your button has a background image with a large orange rounded rectangle that is positioned outside the bounds of the button itself so that only one corner shows.
Here’s an example using an SVG image sized to the same aspect ratio as the button, but with the contained rounded rectangle spilling outside the bounds of the image.