Click here to Skip to main content
15,793,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I make the below image slider code clickable?



<div class="carousel-item">
                <img class="d-block img-fluid" ahref="/whey-protein-concentrate.htm" src="images/whey-protein-for-sale.png" alt="Whey Protein"></a>
              </div>


What I have tried:

I've tried numerous variations to get this image clickable.. with no luck.

Can anyone help?
Posted
Updated 12-Jan-18 15:29pm

Is this what you want?
<div class="carousel-item">
   <a href="/whey-protein-concentrate.htm"><img class="d-block img-fluid"  src="images/whey-protein-for-sale.png" alt="Whey Protein"></a>
</div>
 
Share this answer
 
That is EXACTLY what I was needing!
Thank you so much...
I really appreciate it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900