Lumio Posted February 22, 2008 Share Posted February 22, 2008 Hi! I got a problem. I create a theme for smf and the nav is already nearly finished (see attached picture). The problem is, that the backgroundpicture of that layer has transparent areas. If there is a link under that area, I can't click it. How can I tell the browser that I want to have the link clickable with CSS or at least HTML. On the picture you see a MySQL button, PHP button and the copyright of smf. I can't click on all of them. How to change that? Thanks Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted February 22, 2008 Share Posted February 22, 2008 Considering you're using z-layers already I guess another won't help. Would it be possible to put another layer on top of the nav menu? Then you could create an empty area the same height and width of the MySQL area, position it over the top and make it a link. Just a thought Quote Link to comment Share on other sites More sharing options...
phpQuestioner_v5.0 Posted February 22, 2008 Share Posted February 22, 2008 You could just use a image map; that might work for what your wanting to do. Quote Link to comment Share on other sites More sharing options...
Lumio Posted February 22, 2008 Author Share Posted February 22, 2008 No, because if I click on a transparent area anyway, I won't click on the layer beneath. I would click on the image itself. but thanks for your reply Quote Link to comment Share on other sites More sharing options...
phpQ6 Posted February 23, 2008 Share Posted February 23, 2008 Well if the z-index of the transparent image is higher then the image you want to click and the transparent image is wide/tall enough to cover the image below (that your wanting to click) - then your not going to be able to click that image below - that is just kind of how stacking images with z-index works. Quote Link to comment Share on other sites More sharing options...
Lumio Posted February 23, 2008 Author Share Posted February 23, 2008 @phpQ6: I know. But I want to work around that problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.