People can draw on CSS element which is a red frame?
1 answer
Not the best option on CSS :
PS I recommend using SVG
:root { --size: 16.875rem; } .block { position: relative; width: var(--size); height: var(--size); background-color: lightgray; border-radius: 1rem 1rem 0 0; } .block::before, .block::after { content: ''; position: absolute; bottom: -1rem; width: 5.2rem; height: 1.5rem; background-color: inherit; z-index: -1; } .block::before { left: 0; border-radius: 0 0 100% 0; } .block::after { right: 0; border-radius: 0 0 0 100%; } .ellipse { position: absolute; bottom: -3rem; left: 50%; width: 8em; height: 4rem; border-radius: 50%; background-color: white; transform: translateX(-50%); } <div class="block"> <div class="ellipse"></div> </div> |

clip-pathwithurl, where the value of thepathidentifier with SVG is indicated, but then the sense of using CSS is lost. How can CSS make curved lines? The way to throw a bunch of elements withborder-radiusnot sure what the best idea is. - Vadim Ovchinnikov