「星形」の描画。borderを使った例です。
html
<div class="star"></div>
css
.star { position: relative; width: 0; height: 0; border-right: 50px solid transparent; border-left: 50px solid transparent; border-bottom: 35px solid #39a9d6; -webkit-transform: rotate(35deg); transform: rotate(35deg); } .star::before { position: absolute; top: -25px; left: -30px; width: 0; height: 0; content: ""; border-bottom: 40px solid #39a9d6; border-left: 15px solid transparent; border-right: 15px solid transparent; -webkit-transform: rotate(-35deg); transform: rotate(-35deg); } .star::after { position: absolute; top: 0; left: -50px; width: 0; height: 0; content: ""; border-right: 50px solid transparent; border-left: 50px solid transparent; border-bottom: 35px solid #39a9d6; -webkit-transform: rotate(-70deg); transform: rotate(-70deg); }