WEB制作のメモ帳
背景画像を印刷するCSS
- SOURCE
- ■HTML
<div class="ticket"></div>
<div class="box">サンプルテキスト</div>
■CSS
.ticket{
width:490px;
height:135px;
margin:0px;
display:list-item;
list-style-image:url(img/bg_ticket.gif);
list-style-position:inside;
}
.box{
width:490px;
height:135px;
margin-top:-125px;
}