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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -