メニューの背景の上に画像を配置しようとしています。
list-style-image
背景画像(オンli
とa
タグ)を試しました。どうすればいいですか?メニュー付きの画像:メニューからの画像
オレンジ色の背景: これはメニューの背景です (a タグ)
灰色のボックス: これは、メニューの背景の上に表示したい画像です。(「A」はメニューの背景の場所です。
#nav ul li{
font-weight: bold;
float: left;
margin-top: -5px;
position: relative;
padding: 6px 5px 0 15px;
z-index: 99;
height: 50px;
background-position:left center;
background-image: url(../images/bussel/menu-blad1.png) !important;
background-repeat: no-repeat;
}
#nav ul li a{
background-color: #feb24e;
display: block;
width: 153px;
height: 35px;
color: #fff;
text-align: center;
text-decoration: none;
margin: 10px 0px 0px 0px;
position: relative;
z-index: 98;
}