Hello,

I am trying to create button link with image. This is the code:

index.php

<div style="margin: -250px 0 0 700px;"><a href="#"><img src="images/button_program.jpg"></a></div><br><br>

I wonder why I cannot click the button when I hover my mouse over the button. Usually the mouse cusor turns into hand cusor as a sign that I can click the button.

Only if I add another text then, then the text will be clickable. If no text added, only image, then the image still remains unclickable.

I wonder why?

I changed the -250 to 250. I used my own image. I can see it and I can hover over it and click on it (but obviously nothing happens when I click it).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.