question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Turn an Image into a Link

See original GitHub issue

Challenge Turn an Image into a Link has an issue. User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#"><img src="https://bit.ly/fcc-running-cats"></a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
alistermadacommented, Mar 30, 2016

<a href="#"><img src="https://bit.ly/fcc-running-cats"></a> is just an example.

You’ll need to nest the existing image ( <img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"> ) within an <a> element.

0reactions
texas2010commented, Sep 21, 2016

@dramirez757 Please do not post your solution on here. You could help people at FreeCodeCamp Chat Room or Forum. GitHub Issues are for reporting bugs on the website only.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImgBB — Upload Image — Free Image Hosting
Upload and share your images. Drag and drop anywhere you want and start uploading your images now. 32 MB limit. Direct image links,...
Read more >
Online Image to URL Converter - Atatus
Embed small images directly in your HTML or CSS by converting the image to Data URL to improve performance by reducing the number...
Read more >
HTML Link – How to Turn an Image into a Link and Nest Links ...
How to turn an image into a link. In HTML, we can use the <img> element to add images on the page. In...
Read more >
AnyImage.io - Turn Any Image into a Clickable Link!
Create clickable social cards for Facebook, Twitter, LinkedIn and Google+ in seconds linking to any web page of your choice!
Read more >
How to use an image as a link in HTML? - Tutorialspoint
To make page links in an HTML page, use the <a> and </a> tags, with href attribute used to define the links. We...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found