CSSで三角形

CSS
hoge:before{
content: "";
position: absolute;
top: calc(100% - 1px);
left: 50%;
transform: translateX(-50%);
clip-path: polygon(50% 100%, 0 0, 100% 0);
background-color: #1e1c1d;
width: 20vw;
height: 5vw;
z-index: 3;
}

Spread the love
2025.06.22(日)