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.

bug in passing the test with erroneous code

See original GitHub issue

I passed the test with the following wrong coding - it did not even work correctly: see the image…

image

Challenge Use Responsive Design with Bootstrap Fluid Containers has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<div class="container-fluid">

<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>
https://s3.amazonaws.com/freecodecamp/iphone6-frame.png
<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor"> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label>
  <label><input type="checkbox" name="personality"> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Crazy</label>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
  
</div>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jmona789commented, May 29, 2017

How is the code incorrect? It looks correct to me, everything is wrapped in a div with the class container-fluid

1reaction
mihaid85commented, Jun 3, 2017

The opening div should be below the the style. It violates HTML syntax rules, but it will still display properly, which is why it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Leaving intentional bugs in code for testers to find
This sounds absolutely ridiculous. It is expending a great deal of effort for very questionable benefit, and the practice seems based on some...
Read more >
An Empirical Study of Bugs in Test Code - People
Abstract—Testing aims at detecting (regression) bugs in pro- duction code. However, testing code is just as likely to contain bugs as the code...
Read more >
7 types of software bugs and errors | The Jotform Blog
Knowing about the different types of software bugs can help you quickly address them and get back to developing. Here are the main...
Read more >
Automated Test Errors (aka, Failing Tests) - No Longer Set
You can have a bug in your code and/or in your test. ... an automated test error is any automated test that is...
Read more >
Debugging - you're doing it wrong. 10 techniques to find a bug ...
10 techniques to find a bug in your code ... Console log everything; Use debugger; Problem localization; Create a few tests; Analyze logs ......
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