只今、PHPを学習しております

実用的なブログ見出しデザインセット / h2~h4仕様

ブログ見出しのデザインで、迷っている方へ。

h2~h4のパターンを構築しました。

是非!

とにかく、シンプルな見出しセットです。

CSS
h2 {
  padding: 0.2em 0.6em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #fafafa;
  border-radius: 6px;
}
h3 {
  padding: 0.2em 0.6em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 3px solid #efefef;
  border-right: 3px solid #efefef;
  border-bottom-right-radius: 6px;
}
h4 {
  position: relative;
  padding: 0.2em 0.6em 0.2em 2em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
}
h4::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 17px;
  font-weight: 900;
  color: #b0b0b0;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  padding-left: 5px;
}

シンプルな見出しにアクセントが欲しい方へ。

CSS
h2 {
  position: relative;
  padding: 0.2em 0.6em;
  margin-left: 0.7em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #fafafa;
  border-radius: 3px;
}
h2::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 100%;
  background-color: #aefc40;
  top: 0;
  left: -16px;
  border-radius: 6px;
}
h3 {
  position: relative;
  padding: 0.3em 0.3em 0.3em 0.6em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 2px solid #b1ff9e;
}
h3::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 20px;
  background-color: #aefc40;
  top: 100%;
  right: 30px;
  transform: translateY(-50%) rotate(24deg);
  border-radius: 6px;
}
h3::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 20px;
  background-color: #aefc40;
  top: 100%;
  right: 42px;
  transform: translateY(-50%) rotate(24deg);
  border-radius: 6px;
}
h4 {
  padding: 0.2em 0.2em 0.2em 0.6em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
}

十八番

CSS
h2 {
  position: relative;
  padding: 0.2em 0.2em 0.2em 2.6em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  border: 3px solid #efefef;
  border-radius: 6px;
}
 h2::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 22px;
  font-weight: 900;
  color: #ffca28;
  text-align: center;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  line-height: 2;
  background-color: #fafafa;
  border-right: 3px solid #efefef;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
 h3 {
  position: relative;
  padding: 0.2em 0.2em 0.2em 1em;
  margin-bottom: 1.1em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  background-color: #ffecb3;
  border-radius: 25px;
}
 h3:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 65px;
  margin-left: -13px;
  border: 13px solid transparent;
  border-top: 13px solid #ffecb3;
}
 h3::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  top: 100%;
  left: 65px;
  transform: translateX(0%);
}
 h4 {
  position: relative;
  padding: 0.2em 0.2em 0.2em 1em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  line-height: 1.4;
}
 h4::before {
  position: absolute;
  content: "";
  width: 6px;
  height: 22px;
  background-color: #ffca28;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 6px;
}

幾何学的な印象が欲しい方へ

CSS
h2 {
  position: relative;
  padding: 0.2em 0.5em 0.2em 2.6em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  border: 3px solid #efefef;
  border-radius: 25px;
}
h2::before {
  position: absolute;
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  line-height: 2.2;
  width: 48px;
  height: 48px;
  background-color: #97c0d8;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  border: 3px solid #efefef;
  border-radius: 50%;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em 0.2em 1.8em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 3px solid #efefef;
}
h3::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #94accc;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 50%;
}
h3::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #97c0d8;
  bottom: 5px;
  left: 10px;
  transform: translateY(-50%);
  transform: rotate(18deg);
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 2em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  border: 3px solid #efefef;
  border-left: none;
  border-right: none;
}
h4::before,
h4::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #94accc;
  top: 50%;
  border-radius: 6px;
  transform: translateY(-50%);
}
h4::before {
  left: 10px;
}
h4::after {
  right: 10px;
}

安定

CSS
h2 {
  position: relative;
  padding: 0.3em 0.5em 0.2em 0.6em;
  margin-left: 2em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #fafafa;
  border: 3px solid #a8ccff;
  border-top: none;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}
h2::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 24px;
  font-weight: 900;
  color: #94c1ff;
  width: 45px;
  height: 43px;
  top: 0;
  left: 0;
  text-align: center;
  line-height: 1.7;
  transform: translateX(-100%);
  border: 3px solid #a8ccff;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  background-color: #d6e7ff;
  border-radius: 3px;
}
h3:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 13%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #d6e7ff;
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 2em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  border-radius: 3px;
}
h4::before,
h4::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 100%;
  background-color: #94c1ff;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 6px;
}
h4::before {
  left: 0;
}
h4::after {
  right: 0;
}

遊び

CSS
h2 {
  position: relative;
  padding: 0.2em 0.5em;
  margin-left: 1em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-image: radial-gradient(#fafafa 30%, transparent 30%),
    radial-gradient(#fafafa 30%, transparent 30%);
  background-size: 13px 13px;
  background-position: 0 0, 20px 20px;
  border: 3px solid #efefef;
  border-radius: 6px;
}
h2::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  background-color: #ffca7a;
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  border-radius: 3px;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em 0.2em 2.3em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  border: 3px solid #efefef;
  border-radius: 25px;
}
h3::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 18px;
  font-weight: 900;
  color: #ffca7a;
  text-align: center;
  line-height: 1.5;
  width: 25px;
  height: 25px;
  background-color: #fafafa;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  border: 3px solid #efefef;
  border-radius: 50%;
}

h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 1em 0.3em 1em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  border-bottom: 2px solid #b0b0b0;
}
h4::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 6px;
  background-color: #ffca7a;
  bottom: 2px;
  left: 50%;
  transform: translateY(100%) translateX(-50%);
  border-radius: 3px;
}

可愛く

CSS
h2 {
  position: relative;
  padding: 0.3em 0.3em 0.3em 2.6em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-image: radial-gradient(#fafafa 30%, transparent 30%),
    radial-gradient(#fafafa 30%, transparent 30%);
  background-size: 13px 13px;
  background-position: 0 0, 20px 20px;
  border: 3px solid #efefef;
  border-radius: 6px;
}
h2::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 22px;
  font-weight: 900;
  color: #ef9a9a;
  text-align: center;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  line-height: 2;
  background-color: #fafafa;
  border-right: 3px solid #efefef;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em 0.2em 1em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
}
h3::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 26px;
  background-color: #ef9a9a;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 6px;
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 1em 0.3em 1em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  border-bottom: 2px solid #b0b0b0;
}
h4::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 6px;
  background-color: #ef9a9a;
  bottom: 2px;
  left: 50%;
  transform: translateY(100%) translateX(-50%);
  border-radius: 3px;
}

平凡

CSS
h2 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #ede7f6;
  z-index: 1;
}
h2::before {
  position: absolute;
  content: "";
  width: 40px;
  height: 100%;
  bottom: 0;
  right: 32px;
  background-image: radial-gradient(#b39ddb 30%, transparent 30%),
    radial-gradient(#b39ddb 30%, transparent 30%);
  background-size: 14px 14px;
  z-index: -1;
}
h3 {
  padding: 0.2em 0.8em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  background-color: white;
  border-bottom: 3px dotted #b39ddb;
}
h4 {
  position: relative;
  padding: 0.2em 0.6em 0.2em 2em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
}
h4::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 17px;
  font-weight: 900;
  color: #b39ddb;
  top: 0;
  left: 0px;
  padding-left: 5px;
  line-height: 2;
}

成長

CSS
h2 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #fcfcfc;
  z-index: 1;
}
h2::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: polygon(0 95%, 100% 55%, 100% 100%, 0% 100%);
  background-color: #a3ffa3;
  z-index: -1;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  background-color: white;
  border-bottom: 3px solid #a3ffa3;
}
h3::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 42px;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #a3ffa3;
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.1em 0.8em;
  margin-right: 1.5em;
  margin-bottom: 0.5em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  background-color: #e5ffe5;
  z-index: 1;
}
h4::before {
  position: absolute;
  content: "";
  top: 50%;
  right: -15px;
  margin-left: -18px;
  border-top: 18px solid #e5ffe5;
  border-right: 18px solid #e5ffe5;
  border-bottom: 18px solid transparent;
  border-left: 18px solid transparent;
  transform: translateY(-50%) rotate(45deg);
}
h4::after {
  position: absolute;
  content: "";
  width: 83px;
  height: 3px;
  top: 100%;
  left: 0;
  background-color: #a3ffa3;
}

素朴

CSS
h2 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #fafafa;
  font-size: 22px;
  letter-spacing: 1px;
  background-color: #8e9aaf;
}
h2::before {
  position: absolute;
  content: "";
}
h3 {
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  background-color: white;
  border-bottom: 3px solid #8e9aaf;
}
h3::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 42px;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #8e9aaf;
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 0.5em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
}
h4::before {
  position: absolute;
  content: "";
  width: 83px;
  height: 3px;
  top: 100%;
  left: 0;
  background-color: #8e9aaf;
}

洗練

CSS
h2 {
  position: relative;
  padding: 0.3em 0.3em 0.3em 2.6em;
  color: #555555;
  font-size: 22px;
  letter-spacing: 1px;
  border: 3px solid #efefef;
  border-radius: 6px;
}
h2::before {
  position: absolute;
  content: "\f753";
  font-family: "Font Awesome 5 Free";
  font-size: 22px;
  font-weight: 900;
  color: #ffaa80;
  text-align: center;
  width: 48px;
  height: 48px;
  top: 0;
  left: 0;
  line-height: 2;
  border-right: 3px solid #efefef;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
h3 {
  position: relative;
  padding: 0.2em 0.5em 0.2em 1em;
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
}
h3::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 26px;
  background-color: #ffaa80;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 6px;
}
h4 {
  display: inline-block;
  position: relative;
  padding: 0.2em 0.8em 0.2em 2.3em;
  color: #555555;
  font-size: 17px;
  letter-spacing: 1px;
  border: 2px solid #efefef;
  border-radius: 25px;
}
h4::before {
  position: absolute;
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-size: 15px;
  font-weight: 900;
  color: #ffaa80;
  text-align: center;
  line-height: 1.6;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  border: 2px solid #efefef;
  border-radius: 50%;
}

アイデアが溜まったら追記しますね。

じゃあ〜

コメントを残す

メールアドレスが公開されることはありません。