CSSでメールアイコンを作成しようとしています。これは、UIまたはフロントエンド開発者としてコーディングする正しい方法ですか?HTMLとCSSを使用するメールアイコン
.container {
border-left: 10px solid #80BD9E;
border-right: 10px solid #80BD9E;
background: #F98886;
height: 500px;
width: 500px;
margin: 10% auto;
border-radius: 6px;
}
.arrow-down {
width: 0;
height: 0;
border-left: 250px solid transparent;
border-right: 254px solid transparent;
border-top: 250px solid #80BD9E;
}
.arrow-down1 {
top:22%;
left:25.5%;
width: 0;
height: 0;
border-left: 250px solid transparent;
border-right: 254px solid transparent;
position: absolute;
border-top: 250px solid #f98886;
border-radius:6px;
}
.topLayer {
background: #fff;
position: absolute;
width: 505px;
height: 100px;
margin-left: 24.5%;
margin-top: -9.9%;
z-index: 1;
}
<div class="topLayer">
</div>
<div class="container">
<div class="arrow-down">
<div class="arrow-down1">
</div>
</div>
</div>
ありがとうございました...私はちょうどCSSを使ってそれを作ることを試みていました。 –