Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div><a id="link" href="https://naruhodo.repop.jp/css-heading-tag-design/" target="_blank">Heading tag design CSS</a></div>
<h2 class="BB1">下線付き見出しデザイン1</h2>
<h2 class="BB2">下線付き見出しデザイン2</h2>
<h2 class="BB3">下線付き見出しデザイン3</h2>
<h2 class="BB4">下線付き見出しデザイン4</h2>
<h2 class="BB5">下線付き見出しデザイン5</h2>
<h2 class="BL1">横線付き見出しデザイン1</h2>
<h2 class="BL2">横線付き見出しデザイン2</h2>
<h2 class="BL3">横線付き見出しデザイン3</h2>
<h2 class="B1">枠線付き見出しデザイン1</h2>
<h2 class="B2">枠線付き見出しデザイン2</h2>
<h2 class="B3">枠線付き見出しデザイン3</h2>
<h2 class="FT1">最初の文字を大きくした見出しデザイン1</h2>
<h2 class="FT2">最初の文字を大きくした見出しデザイン2</h2>
<h2 class="FT3">最初の文字を大きくした見出しデザイン3</h2>
<h2 class="RBG1">薄い背景色の見出しデザイン1</h2>
<h2 class="RBG2">薄い背景色の見出しデザイン2</h2>
<h2 class="RBG3">薄い背景色の見出しデザイン3</h2>
<h2 class="RBG4">薄い背景色の見出しデザイン4</h2>
<h2 class="RBG5">薄い背景色の見出しデザイン5</h2>
<h2 class="RBG6">薄い背景色の見出しデザイン6</h2>
<h2 class="RBG7">薄い背景色の見出しデザイン7</h2>
<h2 class="DBG1">濃い背景色の見出しデザイン1</h2>
<h2 class="DBG2">濃い背景色の見出しデザイン2</h2>
<h2 class="DBG3">濃い背景色の見出しデザイン3</h2>
<h2 class="DBG4">濃い背景色の見出しデザイン4</h2>
<h2 class="DBG5">濃い背景色の見出しデザイン5</h2>
<h2 class="DBG6">濃い背景色の見出しデザイン6</h2>
<h2 class="DBG7">濃い背景色の見出しデザイン7</h2>
<h2 class="balloon1">吹き出しの見出しデザイン1</h2>
<h2 class="balloon2">吹き出しの見出しデザイン2</h2>
<h2 class="gra1">グラデーションの見出しデザイン1</h2>
<h2 class="gra2">グラデーションの見出しデザイン2</h2>
<h2 class="gra3">グラデーションの見出しデザイン3</h2>
<h2 class="gra4">グラデーションの見出しデザイン4</h2>
<h2 class="gra5">グラデーションの見出しデザイン5</h2>
<h2 class="star1">星マークの見出しデザイン1</h2>
<h2 class="star2">星マークの見出しデザイン2</h2>
<h2 class="dia1">ダイヤマークの見出しデザイン1</h2>
<h2 class="dia2">ダイヤマークの見出しデザイン2</h2>
<h2 class="square1">四角マークの見出しデザイン1</h2>
<h2 class="square2">四角マークの見出しデザイン2</h2>
<h2 class="heart1">ハートマークの見出しデザイン1</h2>
<h2 class="heart2">ハートマークの見出しデザイン2</h2>
<h2 class="icon1">アイコンフォントを使った見出しデザイン1</h2>
<h2 class="icon2">アイコンフォントを使った見出しデザイン2</h2>
<h2 class="icon3">アイコンフォントを使った見出しデザイン3</h2>
<h2 class="icon4">アイコンフォントを使った見出しデザイン4</h2>
<h2 class="icon5">アイコンフォントを使った見出しデザイン5</h2>
<h2 class="anime1">アニメーションを使った見出しデザイン1</h2>
<h2 class="anime2">アニメーションを使った見出しデザイン2</h2>
<h2 class="anime3">アニメーションを使った見出しデザイン3</h2>
<h2 class="anime4">アニメーションを使った見出しデザイン4</h2>
<h2 class="silhouette1">シルエット画像を使った見出しデザイン1</h2>
<h2 class="silhouette2">シルエット画像を使った見出しデザイン2</h2>
              
            
!

CSS

              
                #link{
  font-size:1em;
  margin:10px 0;
}

h2{
  border:none;
  margin:30px 0px;
	font-size:1.1em;
	color: #325A8C;
	position: relative;
}

/*
下線付き見出しサンプル1
*/
h2.BB1{
  padding: 10px;
  border-bottom:3px solid #FF9100;
}

/*
下線付き見出しサンプル2
*/
h2.BB2{
  padding: 10px;
  border-bottom:6px solid #FF9100;
}

/*
下線付き見出しサンプル3
*/
h2.BB3{
  padding: 10px;
  border-bottom: double 3px #FF9100;
}

/*
下線付き見出しサンプル4
*/
h2.BB4{
  padding: 10px;
  border-bottom: dashed 2px #FF9100;
}

/*
下線付き見出しサンプル5
*/
h2.BB5{
  padding: 10px;
  border-bottom: dashed 4px #FF9100;
}

/*
横線付き見出しサンプル1
*/
h2.BL1{
  padding: 10px;
border-left:5px solid #FF9100;
}

/*
横線付き見出しサンプル2
*/
h2.BL2{
  padding: 10px;
border-left:5px double #FF9100;
}

/*
横線付き見出しサンプル3
*/
h2.BL3{
  padding: 10px;
border-left:3px dashed #FF9100;
}

/*
枠線付き見出しデザイン1
*/
h2.B1{
  padding: 10px;
  border:2px solid #FF9100;
}

/*
枠線付き見出しデザイン2
*/
h2.B2{
  padding: 10px;
  border: double 3px #FF9100;
}

/*
枠線付き見出しデザイン3
*/
h2.B3{
  padding: 10px;
  border: dashed 3px #FF9100;
}
/*
最初の文字を大きくした見出しデザイン1
*/
h2.FT1{
  padding: 0 5px;
  border-bottom:3px solid #FF9100;
}
h2.FT1:first-letter{
  font-size:2em;
}

/*
最初の文字を大きくした見出しデザイン2
*/
h2.FT2{
  padding: 0 5px;
  border-bottom:3px solid #FF9100;
}
h2.FT2:first-letter{
  font-size:2em;
  color:#FF9100;
}

/*
最初の文字を大きくした見出しデザイン3
*/
h2.FT3{
  padding: 10px;
}
h2.FT3:first-letter{
  font-size:1.8em;
  padding: 2px 10px;
  color:#FFF;
  background:#FF9100;
  border-radius:50%;
}

/*
薄い背景色の見出しデザイン1
*/
h2.RBG1{
  padding: 10px;
  background: #E0E0E0;
}

/*
薄い背景色の見出しデザイン2
*/
h2.RBG2{
  padding: 10px;
  background: #E0E0E0;
  border-left:5px solid #FF9100;
}

/*
薄い背景色の見出しデザイン3
*/
h2.RBG3{
  padding: 10px;
  background: #E0E0E0;
  border-left:5px solid #00B0FF;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
}

/*
薄い背景色の見出しデザイン4
*/
h2.RBG4{
  padding: 10px;
  background: #E0E0E0;
  border: dashed 2px #777;
}

/*
薄い背景色の見出しデザイン5
*/
h2.RBG5{
  padding: 10px;
  background: #E0E0E0;
  border: dashed 2px #777;
  box-shadow: 0 0 0 4px #E0E0E0;
}

/*
薄い背景色の見出しデザイン6
*/
h2.RBG6{
  padding: 10px;
  text-align:center;
  background: #E0E0E0;
  border-radius:50%;
}

/*
薄い背景色の見出しデザイン7
*/
h2.RBG7{
  padding: 10px;
  text-align:center;
  background: #E0E0E0;
  border-radius:50%;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
}

/*
濃い背景色の見出しデザイン1
*/
h2.DBG1{
  padding: 10px;
  color:#FFF;
  background: #777;
}

/*
濃い背景色の見出しデザイン2
*/
h2.DBG2{
  padding: 10px;
  background: #777;
  color:#FFF;
  border-left:5px solid #FF9100;
}

/*
濃い背景色の見出しデザイン3
*/
h2.DBG3{
  padding: 10px;
  background: #777;
  color:#FFF;
  border-left:5px solid #00B0FF;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
}

/*
濃い背景色の見出しデザイン4
*/
h2.DBG4{
  padding: 10px;
  color:#FFF;
  background: #777;
  border: dashed 2px #FFF;
}

/*
濃い背景色の見出しデザイン5
*/
h2.DBG5{
  padding: 10px;
  color:#FFF;
  background: #777;
  border: dashed 2px #FFF;
  box-shadow: 0 0 0 4px #777;
}

/*
濃い背景色の見出しデザイン6
*/
h2.DBG6{
  padding: 10px;
  text-align:center;
  color:#FFF;
  background: #777;
  border-radius:50%;
}

/*
濃い背景色の見出しデザイン7
*/
h2.DBG7{
  padding: 10px;
  text-align:center;
  color:#FFF;
  background: #777;
  border-radius:50%;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.7);
}

/*
吹き出しの見出しデザイン1
*/
h2.balloon1{
  padding: 10px;
  background: #E0E0E0;
}

h2.balloon1:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 5%;
	border: 0.5em solid transparent;
	border-top: 1.3em solid #E0E0E0;
}

/*
吹き出しの見出しデザイン2
*/
h2.balloon2{
  padding: 10px;
  padding-left: 0.5em;
  color:#FFF;
  background: #777;
}

h2.balloon2:after {
	content: ""; 
	position: absolute;
	top: 100%;
	left: 5%;
	border: 0.5em solid transparent;
	border-top: 1.3em solid #777;
}

/*
グラデーションを使った見出しデザイン1
*/
h2.gra1{
  padding: 10px;
  background: linear-gradient(to right, #FFCC80, rgba(255,255,255,0) 70%);
}
/*
グラデーションを使った見出しデザイン2
*/
h2.gra2{
  padding: 10px;
  background: linear-gradient(to right, #FF9100, rgba(255,255,255,0) 100%);
}
/*
グラデーションを使った見出しデザイン3
*/
h2.gra3{
  padding: 10px;
  padding-left: 0.5em;
  color:#FFF;
  background: linear-gradient(to right, #000, rgba(255,255,255,0) 100%);
}
/*
グラデーションを使った見出しデザイン4
*/
h2.gra4{
  padding: 10px;
}

h2.gra4::after{
	content: "";
  width:100%;
  height:6px;
	position: absolute;
	left: 0;
	bottom: 0;
  background: linear-gradient(to right, #FF9100, rgba(255,255,255,0) 100%);
}
/*
グラデーションを使った見出しデザイン5
*/
h2.gra5{
  padding: 10px;
}

h2.gra5::after{
	content: "";
  width:100%;
  height:6px;
	position: absolute;
	left: 0;
	bottom: 0;
  background: linear-gradient(to right, #000, rgba(255,255,255,0) 100%);
}

/*
星マークの見出しデザイン1
*/
h2.star1{
	position: relative;
  padding: 10px;
  padding-left:2em;
}
h2.star1::before{
	content: "★";
	color: #FF9100;
	font-size:2em;
	position: absolute;
	left: 0;
	top: -0.2em;
}

/*
星マークの見出しデザイン2
*/
h2.star2{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.star2::before{
	content: "★";
	color: #FF9100;
	font-size:2em;
	position: absolute;
	left: 0;
	top: -0.2em;
}

h2.star2::after{
	content: "★";
	font-size:1.5em;
	position: absolute;
	left: 0.4em;
	top: 0.3em;
	color: #E65100;
}

/*
ダイヤマークの見出しデザイン1
*/
h2.dia1{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.dia1::before{
	content: "◆";
	color: #FF9100;
	font-size:2em;
	position: absolute;
	left: 0;
	top: -0.1em;
}

/*
ダイヤマークの見出しデザイン2
*/
h2.dia2{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.dia2::before{
	content: "◇";
	color: #FF9100;
	font-size:1.9em;
	position: absolute;
	left: 0;
	top: -0.1em;
}

h2.dia2::after{
	content: "◇";
	color: #325A8C;
	font-size:1.3em;
	position: absolute;
	left: 0.4em;
	top: 0.4em;
}

/*
四角マークの見出しデザイン1
*/
h2.square1{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.square1::before{
	content: "■";
	color: #FF9100;
	font-size:2em;
	position: absolute;
	left: 0;
	top: -0.1em;
}

/*
四角マークの見出しデザインB
*/
h2.square2{
	position: relative;
	padding: 10px;
	padding-left:2em;
}

h2.square2::before{
	content: "■";
	font-size:1.5em;
	position: absolute;
	left: 0.1em;
	top: 0.15em;
	color: #FF9100;
}

h2.square2::after{
	content: "■";
	font-size:1.4em;
	position: absolute;
	left: 0.4em;
	top: 0.5em;
	color: #325A8C;
}

/*
ハートマークの見出しデザインA
*/
h2.heart1{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.heart1::before{
	content: "♥";
	color: #FF9100;
	font-size:2em;
	position: absolute;
	left: 0;
	top: -0.1em;
}

/*
ハートマークの見出しデザインB
*/
h2.heart2{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.heart2::before{
	content: "♡";
	color: #FF9100;
	font-size:1.8em;
	position: absolute;
	left: 0;
	top: -0.05em;
}

h2.heart2::after{
	content: "♡";
	font-size:1.1em;
	position: absolute;
	left: 0.6em;
	top: 0.6em;
	color: #325A8C;
}

/*
アイコンフォントを使った見出しデザイン1
*/
h2.icon1{
	position:relative;
  padding:10px;
  padding-left:2em;
}

h2.icon1::before{
font-family:'FontAwesome';
content:"\f0a9";
font-size:2em;
position:absolute;
left:0;
top:0.1em;
color: #FF9100;
}

/*
アイコンフォントを使った見出しデザイン2
*/

h2.icon2{
	position:relative;
  padding:10px;
  padding-left:2.5em;
  background:#FF8F00;
  color:#FFF;
}

h2.icon2::before{
font-family:'FontAwesome';
content:"\f044";
font-size:1.8em;
position:absolute;
left:0.15em;
top:0.25em;
color:#FFF;
}

/*
アイコンフォントを使った見出しデザイン3
*/
h2.icon3{
	position:relative;
  padding:10px;
  padding-left:2em;
}

h2.icon3::before{
font-family:'FontAwesome';
content:"\f0a4";
font-size:1.9em;
position:absolute;
left:0;
top:0.1em;
color: #FF9100;
}

/*
アイコンフォントを使った見出しデザイン4
*/
h2.icon4{
	position:relative;
  padding:10px;
  padding-left:2em;
}

h2.icon4::before{
font-family:'FontAwesome';
content:"\f058";
font-size:2em;
position:absolute;
left:0;
top:0.1em;
color: #FF9100;
}

/*
アイコンフォントを使った見出しデザイン5
*/
h2.icon5{
	position:relative;
  padding:10px;
  padding-left:2em;
  z-index: 1;
}

h2.icon5::before{
font-family:'FontAwesome';
content:"\f1d7";
font-size:4em;
position:absolute;
left:0;
top:-0.15em;
color: #FFB74D;
z-index:-1;
}

/*
アニメーションを使った見出しデザイン1
*/
h2.anime1{
  padding: 10px;
  background: #FFCC80;
  animation: anime1_anime 5s reverse infinite;
}

@keyframes anime1_anime{
0% { background: #FFCC80; }
50% { background: #E1F5FE; }
}

/*
アニメーションを使った見出しデザイン2
*/
h2.anime2{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.anime2::before{
	content: "♥";
	color: #FF9100;
	font-size:1.8em;
	position: absolute;
	left: 0;
	top: -0.05em;
  animation: anime2_anime 3s reverse infinite;
}

@keyframes anime2_anime{
80% { transform: scale(1); }
90% { transform: scale(1.3); }
100% { transform: scale(1); }
}

/*
アニメーションを使った見出しデザイン3
*/
h2.anime3{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.anime3::before{
	content: "♥";
	color: #FF9100;
	font-size:1.8em;
	position: absolute;
	left: 0;
	top: -0.05em;
  animation: anime3_anime 3s reverse infinite;
}

@keyframes anime3_anime{
100% {
  transform: rotateY(360deg);
  -webkit-transform: rotateY(360deg);
  }
}

/*
アニメーションを使った見出しデザイン4
*/
h2.anime4{
	position: relative;
  padding: 10px;
  padding-left:2em;
}

h2.anime4::before{
	content: "♥";
	color: #FF9100;
	font-size:1.8em;
	position: absolute;
	left: 0;
	top: -0.05em;
  animation: anime4_anime 3s infinite;
}

@keyframes anime4_anime{
0% { color: #FF9100; }
50% { color: #81D4FA; }
100% { color: #FF9100; }
}

/*
シルエット画像を使った見出しデザイン1
*/
h2.silhouette1{
	position:relative;
  color:#FF9100;
  padding:50px;
  padding-left:2em;
  background-image:url("https://naruhodo.repop.jp/wp-content/uploads/2018/02/mario.png");
  background-size:contain;
  background-repeat: no-repeat;
}

/*
シルエット画像を使った見出しデザイン2
*/
h2.silhouette2{
	position:relative;
  color:#FF9100;
  padding:90px 40px 30px 0px;
  padding-left:2em;
  background-image:url("https://naruhodo.repop.jp/wp-content/uploads/2018/02/cat.png");
  background-size:contain;
  background-repeat: no-repeat;
}

h2.silhouette2::after{
	content: "";
  width:100%;
  height:6px;
	position: absolute;
	left: 0;
	bottom: 0;
  background: linear-gradient(to right, #000, rgba(255,255,255,0) 100%);
}
              
            
!

JS

              
                
              
            
!
999px

Console