Thursday, January 11, 2024

Button click not working

When you add a button to an existing page and see that you cannot click the button, it might be due to an existing component margin overlapping with it, you can check it with your browser development tools - inspect element:
One way to solve it is to increase the z-index of your button. You also have to set position: relative for z-index to work:
<button style="padding-left: 20px; padding-right: 20px; 
position: relative; z-index: 99;" type="submit">Yorum yap</button>

No comments:

Post a Comment