+ 3
How yo make download button?
3 odpowiedzi
+ 22
<a href =/image.png download=file.png><button>Download</button></a>
+ 14
<a href = ""> <button> download </button> </a>
+ 5
You actually don't need to nest elements like that. You can just use an anchor tag and set the href to the location of the file you are downloading, and give the anchor tag a 'download' attribute. Use css to style the anchor tag. For example I like using bootstrap and the predefined styles. I'd just do something like:
<a href="/images/my download.jpg" download class="btn btn-default">Download </a>