malibujamba Posted January 16, 2008 Share Posted January 16, 2008 <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 More sharing options...
justsomeguy Posted January 16, 2008 Share Posted January 16, 2008 I don't see anything wrong with that code that would cause it not to work in any browser. Link to comment Share on other sites More sharing options...
malibujamba Posted January 16, 2008 Author Share Posted January 16, 2008 I don't see anything wrong with that code that would cause it not to work in any browser.I finaly found out what it was. I was standing behind an other div. So I could see the image but not click on it. with z-index I got it to the front. Works fine now. Link to comment Share on other sites More sharing options...
hgmme@wa Posted January 16, 2008 Share Posted January 16, 2008 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 More sharing options...
malibujamba Posted January 17, 2008 Author Share Posted January 17, 2008 Good for you that you found it out finally.z-index can be verry usefull sometimes. But you do have to realize that you need to use it in my case:D Link to comment Share on other sites More sharing options...
jlhaslip Posted January 18, 2008 Share Posted January 18, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.