PDA

View Full Version : download button?


tmacka88
10-11-2012, 05:02 AM
Hi,

I am having a little trouble with getting my button to download a test file.

I have a 3 stage button= norm, hover and active. I want this button when clicked to download a file without leaving the page or going into another one.

this is my html

<div id="dw-btn-power-out">
<a href="Download-files/Power-out/v.1.0.0/test.zip" title="Download Power Out" target="_blank"></a>
</div>

and this is my CSS
#dw-btn-power-out {
height: 68px;
width: 270px;
margin-right: auto;
margin-left: auto;
background-image: url(img/dw-power-out.png);
}
#dw-btn-power-out:hover {
background-image: url(img/dw-power-out-hover.png);
}
#dw-btn-power-out:active {
background-image: url(img/dw-power-out-active.png);
}

am i missing something cause my navbar links work which are the same as this.

thanks