プラス – css plus –

プラスアイコン アイコン

プラスアイコンを作成してみました。さすがにこれは簡単ですね。

ソース

html

<div class="plus"></div>

css

/* 縦 */
.plus {
	font-size: 100px;
	position: relative;
	width: 0.4em;
	height: 1.6em;
	background-color: #39a9d6;
}
/* 横 */
.plus::before {
	position: absolute;
	top: 0.6em;
	left: -0.6em;
	width: 1.6em;
	height: 0.4em;
	content: "";
	background-color: #39a9d6;
}
タイトルとURLをコピーしました