Web Marketing Tool
Reseller
WMT .
Question
Referred By: Web Marketing Tool
Login


How do I make an image or icon with a rollover ...

Added: 06/19/2016   |   Updated: 7 Years Ago

Question   How do I make an image or icon with a rollover effect that shows a download icon on top of the image?



Answer    Below is code you can use to create the effect show above:
The first 3 lines are jQuery and Bootstrap includes. If you already have them included you can remove it. Also, it is only needed for the download icon, so if you use a different icon or an image you don't need it.

In the line below change the 250px to be the height of the thumbnail:
.download .overlay i{line-height:250px}

The code below is for the icon. It can be swapped out with whatever you want (different icon, image, text, etc):
<i class="glyphicon glyphicon-download-alt"></i>

Replace "IMAGE-large.jpg" with the larger image that will be downloaded when clicked.

Replace "IMAGE-smaller.jpg" with the smaller image used for the thumbnail.




Related Documents

Page Installation Overview


Still Don't Understand?

Fill out the form below to ask for further clarification about this question:




RELATED QUESTIONS








DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237