大きいサイズ
小さいサイズ
見出しサンプル
<h1 class="caption">見出し文字</h1>
.caption::before{
background: url(画像URL) no-repeat;
background-size: contain;
content: "";
display: inline-block;
height: 1.3em;
transform: rotate(-20deg);
width: 1em;
}
見出しサンプル
<h1 class="caption">見出し文字</h1>
.caption{
background: #e86a81;
color: #fff;
display: table;
padding: 0 .3em;
}
.caption::before , .caption::after{
background: url(画像URL) no-repeat;
background-size: contain;
content: "";
display: inline-block;
height: 1.3em;
margin-bottom: -.26em;
width: 1em;
}
.caption::after{
transform: rotate(180deg);
}
<div class="box">ボックスサンプル</div>
.box{
background: url(画像URL) repeat-y;
border: solid 1px #000;
padding-left: 40px;
}