javascript - doesn't work within a -



javascript - <a> doesn't work within a <div> -

i have button 3 states (three different images) , works , looks great except primary function of button - link other document:)

when it's clicked, nil happens. need utilize javascript or <input> or <button>?

i've tried <button> tag, 3 states didn't work.

and <a id="backbutton">... doesn't work 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>

use

#backbutton a{display:block;width:100%;height:100%;}

to create link within div fit container..

javascript html css

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -