function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Keith Lee 25Keith Lee 25 

How to build lightning component with hyperlinked image?

I have an image that I would like to place on the Home Page of my users and I'd like to make it where if they click on it it takes them to a website. So I'm assuming the best way to do this would be build a Lightning Component.  Could someone help me with the code needed to do this?
Raj VakatiRaj Vakati
Try htis link 
 
<aura:component >
    <a href="https://www.w3schools.com">
        <img border="0" alt="W3Schools" src="https://www.w3schools.com/tags/logo_w3s.gif" width="100" height="100"/>
    </a>
    
</aura:component>

 
Keith Lee 25Keith Lee 25
Thank you!  That works perfectly!  However, how could I set it up to where the image size is responsive?