Click here to Skip to main content
13,738,803 members
Rate this:
 
Please Sign up or sign in to vote.
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 12-Jan-18 11:11am
Updated 12-Jan-18 14:29pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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>
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

That is EXACTLY what I was needing!
Thank you so much...
I really appreciate it.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web05-2016 | 2.8.180920.1 | Last Updated 12 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100