i have javascript events that are triggered OnClick within two divs,
the problem is, that the larger area is underneath the smaller area,
when i click on the smaller area, the larger area OnClick event also triggers…
I tried messing around with the z-index, but it doesn’t seem to have any effect…
any help would be great
Without seeing some code, it’s hard to diagnose what’s going on here.
Remember though, z-index requires that the element be positioned somehow (relative, absolute or fixed).
PaulOB
3
This sounds like a javascript question.
If your divs are nested then any click on the inner element will bubble up through the document and get caught by the parents onclick handler.
Read this and if that’s your problem I’ll move this thread to the JS forum.