<h1 class="cp_headline06">見出しテキスト</h1>
.cp_headline06 {
position: relative;
padding: 0.3em 0.3em 0.3em 0.8em;
color: #ffffff;
background-color: rgba(49,27,146 ,1);
background-image:
-webkit-linear-gradient(
45deg,
rgba(69,39,160 ,1) 25%, transparent 25%,
transparent 75%, rgba(69,39,160 ,1) 75%,
rgba(69,39,160 ,1)),
-webkit-linear-gradient(
135deg,
rgba(69,39,160 ,1) 25%, transparent 25%,
transparent 75%, rgba(69,39,160 ,1) 75%,
rgba(69,39,160 ,1));
background-image:
linear-gradient(
45deg,
rgba(69,39,160 ,1) 25%, transparent 25%,
transparent 75%, rgba(69,39,160 ,1) 75%,
rgba(69,39,160 ,1)),
linear-gradient(
-45deg,
rgba(69,39,160 ,1) 25%, transparent 25%,
transparent 75%, rgba(69,39,160 ,1) 75%,
rgba(69,39,160 ,1));
background-position: 0 0, 10px 10px;
background-size: 20px 20px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.cp_headline06::before,
.cp_headline06::after {
position: absolute;
width: 0;
height: 51.95px;
content: '';
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-width: 0 0 0 1px;
border-style: solid;
border-color: rgba(156,39,176 ,1);
}
.cp_headline06::before {
right: 10px;
bottom: -15px;
}
.cp_headline06::after {
top: -15px;
left: 10px;
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@copypet_jp More Info