Jump to content

<ul><li> Menu with <img /> in it


malibujamba

Recommended Posts

<div id="submenu"><ul><li><a href="url.php"><img src="images/image.jpg" alt="text" /></a></li><li><a href="url.php"><img src="images/image.jpg" alt="text" /></a></li><li><a href="url.php"><img src="images/image.jpg" alt="text" /></a></li></ul></div>

That's the menu I made. First I had it with text and it worked fine. Now instead of the text I wanted to use images. The code above works fine in IE but in firefox it does shows the image but I can not click on it like like a link.Somebody has an solution?btw. This is the css that goes with the menu:

#submenu{	position: absolute;	margin-top: 380px;	margin-left: 530px;	width: 284px;}#submenu ul {	margin: 0;	padding: 0;}	#submenu ul li {	float: left;	margin: 0;	padding: 0;}#submenu ul li a {	margin: 0;	padding: 0;	margin-left: 15px;}

Link to comment
Share on other sites

You know I had an issue a while back were I had a div with links in it, and the div was positioned on the left using css about like this:

#leftDIV { position: absolute; left: 0; top: 20px; }

and another div to that used margin on the left to put it to the right of the first div. It worked in IE, but not firefox. It took me a long time to figure out the problem. Unfortuntly I didn't know about z-index till earlier today ironically.

Link to comment
Share on other sites

Good thing you found the solution. next time, please post the entire code (html and CSS), or, better still, a link to a sample page.Without the entire code, no-one could have possibly assisted you with this problem.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...