Как сделать закругление во внутрь на таком макете?
Ответы (2 шт):
Автор решения: darinka poznyak
→ Ссылка
Есть разные способы такого скругления. Например вот такой, искусственный:
#rel {
width: 300px;
height: 200px;
border: 1px solid black;
position: relative;
margin: auto;
}
#abs1 {
width: 150px;
height: 200px;
position: absolute;
border-top-right-radius: 100px;
border-bottom-right-radius: 100px;
background: orange;
}
#abs2 {
position: absolute;
width: 300px;
height: 200px;
background: beige;
right: 0;
z-index: -1;
}
<div id="rel">
<div id="abs1"></div>
<div id="abs2"></div>
</div>
Автор решения: Qwertiy
→ Ссылка
main {
display: grid;
grid-template-columns: 30% 1fr;
gap: 3em;
background: antiquewhite;
}
main::before {
content: "";
background: linear-gradient(to bottom, red, blue);
aspect-ratio: 1;
clip-path: circle(100% at 0 50%);
}
section {
align-self: center;
}
<main>
<section>
<h1>Тут контент</h1>
</section>
</main>
