このコーナーでは、テンプレートのカスタマイズについて、実際のサンプルページを元に紹介していきます。

皆さん、こんにちは。おちゃのこネットの刑部です。

今回のデザイン道場は、前回はランキングのNo.1などのラベルをを数字のみにする方法をご紹介しましたが、今回はその数字を画像内に入れてすっきり表示する方法をご紹介します。






スタイルシートを編集する

デザイン管理→スタイルシートの編集から下記の指定をコピーして貼り付けてください。
※タッチデバイス用(※幅が狭い)とパソコン幅で位置指定を変えています。

.item_rankno {
position: relative;
margin: 0;
}
.item_data .rankno {
display: block;
width: 16px;
min-width: auto;
height: 16px;
margin: auto;
line-height: 16px;
border-radius: 16px;
position: absolute;
top: 5px;
left: 5px;
z-index: 2;
font-size: 10px;
}

@media screen and (min-width: 840px) {
.item_data .rankno {
top: 10px;
left: 15px;
}
}

 

なお、お問い合わせは下記ページからお願い致します。

https://www.ocnk.net/contact/index.php

Copyright (C) 2004-2006 OCHANOKO-NET All Rights Reserved.