html - Disable image over button -


I have a transparent PNG which partially overlaps one button. Buttons are inactive, where the image overlaps. Is there a way to turn off transparency "Close" so that the button is clickable behind it? Or are there any other tips that can fix this problem?

I would say that in general, there is actually no solution to the problem; an image area is always rectangular Whether its pixels are transparent or not.

However, the reply to @ Chief 17 gave me an idea which can work if your button is not using the OS rendering style, and the background image itself is not

If this is the case, and the normal layout status permits, you can set the image that should be overlap in the form of background image of that button - apart from image floating Subject of background-condition around the page Industry by, you will need to adjust the image position so that it should be left to the visual area of ​​the button, only to cover the button on which to cover small overlapping area.

Is it clearly applied? It is using the button's background-image for duplicate overlapping, while the overlapping area in the truth is the background image of the button.

It works when you have really tight control button position and other factors can not work for you.


Comments