<h1 class="cp_headline04">見出しテキスト</h1>
.cp_h1title {
position: relative;
color: #ffffff;
background:#29b6f6;
border-radius: 8px;
padding: 5px 15px;
}
.cp_h1title::before,
.cp_h1title::after {
position: absolute;
content: '';
width: 20px;
height: 20px;
border: solid #b3e5fc;
border-width: 2px 0 0 2px;
border-radius: 8px 0 0 0;
}
.cp_h1title::before {/*左のカギ括弧の位置*/
top: 3px;
left: 3px;
}
.cp_h1title::after {/*右のカギ括弧の位置*/
bottom: 3px;
right: 3px;
transform: rotate(180deg);/*180度回転*/
}
CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。
@CopypetJp More Info