デザインコード紹介

Chapter3 ボタンデザイン

背景色とシンプル矢印に丸背景

更新日:

背景色とシンプル矢印に丸背景のWebデザイン画像

HTML

<a href="">私たちについて</a>

CSS

a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 30px 43px 30px 30px;
  width: 260px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  background-color: #90be70;
  border-radius: 50%;
}

a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #cae6b7;
  border-radius: 20px;
}

a::after {
  content: '';
  transform: rotate(45deg);
  width: 6px;
  height: 6px;
  border-top: 2px solid #2b550e;
  border-right: 2px solid #2b550e;
}

できるだけ誌面とコードの色を近づけるように調整しましたが、印刷物と画面表示との差異はどうしても発生してしまいます。サポートサイトでご確認いただける色が実際に表示されます。