HI, I need some help on this, I am trying to create unordered list which has an image with nested li’s,the problem is that when the image is unresolved in the url the nested li’s will not properly align in the box or the nested li’s will go up…I want that when the image is invisible the neted li’s will properly align in its box or it’s in proper position can you please help me on this…
Thank you in advance.
<!DOCTYPE html>
<html>
<head>
<title>Menu image</title>
<style type="text/css">
ul.pictest{
width: 100%;
}
ul.pictest li{
list-style: none;
float:left;
margin-right: 5px;
height: 25px;
}
.pictest ul{
width: 170px;
border: solid 1px red;
color:red;
overflow: hidden;
position: relative;
top: -121px;
text-align: left;
padding: 0;
margin: 0;
}
.pictest ul li {
padding: 0;
width: 150px;
display: none;
}
.pictest li:hover li {
display: block;
background-color: yellow;
}
</style>
</head>
<body>
<ul class="pictest">
<li><img src="img1.png"/>
<ul>
<li><a href="#">ABC</a></li>
<li><a href="#">EFG</a></li>
<li><a href="#">HIJ</a></li>
</ul>
</li>
<li><img src="img2.png" >
<ul>
<li><a href="#">check</a></li>
<li><a href="#">graphics</a></li>
<li><a href="#">design</a></li>
</ul>
</li>
<li><img src="img3.png"></li>
</ul>
</body>
</html>