矢印(←) – css arrow-left –

左アイコン アイコン

矢印(←)アイコンを作成してみました。ちょっと不恰好ですが、最初はこんなもんかな・・・

ソース

html

<div class="arrow_left"></div>

css

/* 長方形 */
.arrow_left {
	font-size: 100px;
	position: relative;
	width: 1em;
	height: 0.6em;
	background-color: #39a9d6;
}
/* 三角 */
.arrow_left::before {
	position: absolute;
	top: -0.5em;
	left: -0.6em;
	width: 0;
	height: 0;
	content: "";
	border-right: 0.8em solid #39a9d6;
	border-top: 0.8em solid transparent;
	border-bottom: 0.8em solid transparent;
}
タイトルとURLをコピーしました