環境
WordPress
プラグインにTheTHORを使用しています
以下のソースでTheThorの追加のCSSからCSSを更新すると
このように画像が重なってしまっているのと
リストの点が残ってしまっています
・重なっているのは
padding-left: 205px;
・リストの点は
list-style-type: none;
で治ると思っていましたがうまくいかないです
TheThorが原因な気がしますが・・・
わかる方アドバイスをお願いします!
CSS
1section ul{ 2 margin: 0; 3 padding: 0; 4 font-size: 86%; 5 list-style-type: none; 6} 7section ul li{ 8 padding-left: 205px; 9 line-height: 2.5em; 10 background: left top no-repeat; 11 background-size: 30px auto; 12} 13 14section ul li:nth-child(1) { 15 background-image: url("Rank_1.png"); 16} 17section ul li:nth-child(2) { 18 background-image: url("Rank_2.png"); 19} 20section ul li:nth-child(3) { 21 background-image: url("Rank_3.png"); 22} 23section ul li:nth-child(4) { 24 background: url("Rank_1.png") no-repeat; 25 background-size: 30px auto; 26} 27section ul li:nth-child(5) { 28 background: url("Rank_1.png") no-repeat; 29 background-size: 30px auto; 30}
html
1</div> 2<h2>ランキング</h2> 3<ul> 4 <li>リストのテスト1</li> 5 <li>リストのテスト2</li> 6 <li>リストのテスト3</li> 7 <li>リストのテスト4</li> 8 <li>リストのテスト5</li> 9</ul> 10</div>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/17 06:24