cssの形をリストアイコンに合わせようとしています。
現在、次のようになっています。
しかし、次のようになります。
私はposition:absoluteを使ってみました。相対的; とマージン、まだ何もありません。ライブテストは次のとおりです。
css:
.services-info ul {}
.services-info ul li {
background: #fff;
margin: 40px 0;
padding: 10px;
height: 115px;
width: 263px;
}
.services-info ul li:before {
content: "";
width: 0;
height: 0;
border-top: 50px solid transparent;
border-right: 100px solid red;
border-bottom: 50px solid transparent;
}
.services-info ul li:nth-of-type(1) {
list-style-image: url(../images/fb-icon.png);
}
.services-info ul li:nth-of-type(2) {
list-style-image: url(../images/twitter-icon.png);
}
.services-info ul li:nth-of-type(3) {
list-style-image: url(../images/yt-icon.png);
}
どうすればそれらを揃えることができますか?それとも、コーナーとしての画像がより良いオプションでしょうか?