I am facing an issue with a button that has three different states represented by images. While the button looks great and functions well, it fails to perform its primary function - linking to another document.
Upon clicking the button, no action is initiated. I am unsure whether I need to incorporate javascript or use <input>
or <button>
.
Although I attempted using the <button>
tag, the functionality of the three different states was not successful.
Similarly, utilizing <a id="backbutton">
did not yield the desired results either.
#backbutton{ width: 100px; height:100px; background-image: url('../obrazky/fs/back_up100.png'); }
#backbutton:hover{ background-image: url('../obrazky/fs/back_hover100.png'); }
#backbutton:active{ background-image: url('../obrazky/fs/back_down100.png'); }
<div id="backbutton"><a href="index.html"></a></div>