Como faço para criar tal figura [fechado]
Dec 25 2020
Eu quero criar uma figura usando CSS? Eu surfei e encontrei retângulos ovais, mas não encontrei este aqui.
Imagem:

Respostas
2 TemaniAfif Dec 25 2020 at 19:37
a transformação enviesada pode fazer isso:
.box {
height: 400px;
width: 400px;
position: relative;
border-left: 5px solid blue;
overflow: hidden;
}
.box::before,
.box::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
box-sizing: border-box;
border-top: 5px solid blue;
border-right: 5px solid blue;
transform-origin: bottom;
transform: skewX(8deg);
}
.box::after {
transform: scaleY(-1) skewX(8deg);
}
<div class="box"></div>
ImranRafiqRather Dec 25 2020 at 19:42
Eu vim com este hack: Usando clip-path:playgon()
propriedade.
.container{
position:absolute;
background:red;
width:520px;
height:220px;
clip-path: polygon(0 0, 90% 0,100% 50%, 90% 100%, 0 100%);
background:blue;
position:relative;
}
.child{
width:500px;
height:200px;
clip-path: polygon(0 0, 90% 0,100% 50%, 90% 100%, 0 100%);
background:#fff;
position:absolute;
top:10px;
left:10px;
background-image:url(https://picsum.photos/200);
}
<div class="container">
<div class="child"></div>
</div>
O que significa um erro “Não é possível encontrar o símbolo” ou “Não é possível resolver o símbolo”?
Christopher Nolan uma vez se arrependeu de ter lido o 'roteiro de Pulp Fiction' de Quentin Tarantino