プラス2 – css plus2 –

プラスアイコン アイコン

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

ソース

html

<div class="plus2"></div>

css

/* 円 */
.plus2 {
	font-size: 100px;
	position: relative;
	width: 1.4em;
	height: 1.4em;
	border: 0.1em solid #39a9d6;
	border-radius: 100%;
}
/* 縦 */
.plus2::before {
	position: absolute;
	top: 0.2em;
	left: 0.6em;
	width: 0.2em;
	height: 1em;
	content: "";
	background-color: #39a9d6;
}
/* 横 */
.plus2::after {
	position: absolute;
	top: 0.6em;
	left: 0.2em;
	width: 1em;
	height: 0.2em;
	content: "";
	background-color: #39a9d6;
}
タイトルとURLをコピーしました