Hi all,
I have a menu that I am trying to apply an image to. Actually, I am trying to apply 3 images to it (left, right, and tiled).
Now my menu setup in an unordered list (courtesy of [URL=”http://csscreator.com/menu/multimenu.php#”]http://csscreator.com/menu/multimenu.php#
and I want to apply the three images I have as the background image for each cell. Now I have gotten the left and tile to work properly, but I can’t get the right to work. It always shows up on the left hand side, and if I try to float it or absolute position it, everything else disappears.
If anyone could help, I would greatly appreciate it.
Here is the CSS code for the images:
[CODE].container {
position: relative;
height: 25px;
}
.left{
position: relative;
left: 0px;
width: 50px;
background: url(test_menu/button-left2.jpg);
Background-Repeat: no-repeat;
z-index: 3;
}
.tile{
Position: relative;
padding: 0;
margin:0;
width: 100%;
background: url(test_menu/button-tile.jpg);
Background-Repeat: repeat-x;
z-index: 1;
}
.right{
width: 30px;
background: url(test_menu/button-right.jpg);
Background-Repeat: no-repeat;
z-index: 3;
}
and here is my menu that I have. I have so far only tried to apply the image to the first item, which doesn’t quite work.
[CODE]<body>
<ul id=”vertnav”>
<li> <!–<div class=”tile”><div class=”left”><div class=”right”><a href=”#” >first Level menu</a></div></div></div>–>
<div class=”container”><div class=”tile”><div class=”left”><div class=”right”><a href=”#” >first Level menu</a></div></div></div></div>
<ul>
<li><a href=”#” >second Level menu</a></li>
<li><a href=”#” >second Level menu</a>
<ul>
<li><a href=”#” >third Level menu</a></li>
</ul>
</li>
</ul>
</li>
<li> <a href=”#” >fourth Level menu</a>
<ul>
<li><a href=”#” >fifth Level menu</a></li>
<li><a href=”#” >fifth Level menu</a>
<ul>
<li><a href=”#” >sixth Level menu</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</body>
There is more to the CSS page, but it is more for the styling of the unordered lists so I didn’t bother to include it.
Thanks
Jeremy