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.

Question Loads With Partial Solution

See original GitHub issue

Challenge Specify How Fonts Should Degrade has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.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;
  }
</style>

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

<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>

The h2 element:

h2 {
  font-family: Lobster, Monospace;
}

Loads by default with the font degrade challenge resolved.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
rarmateicommented, Feb 18, 2017

As @erictleung suggested, how about if the h2 tag becomes this:

h2 {
  font-family: Lobster;
}

And then re-word the challenge as:

Now comment out your call to Google Fonts, so that the Lobster font isn’t available. You’ll also have to make sure the heading font gets degraded to Monospace. Some CSS changes will be necessary for this.

Regarding @raisedadead worry about it being too daunting, I noticed there’s a complete example (with a p element) right above the challenge text on making an element “font degrading safe”, so if they just follow that example, it shouldn’t be difficult to solve it.

Once you decide on how this can be re-worded/altered, do you mind if I pick it up to open a PR? I’d be very interested in getting more experience with altering FCC challenges.

2reactions
systimoticcommented, Feb 18, 2017

@rarmatei Sounds good to me! A PR would be great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I answer the question with just a partial solution?
First, give out precise and to the point solution which solves the problem, then keep adding details to it (edits), to make it...
Read more >
Partial Solutions
Two examples of partially solved case scenarios are shown below. Learners would load each into their browser, complete the solution, and submit their...
Read more >
Approximate solutions for the problem of a load moving on ...
Abstract. The classical problem of determining the dynamic response of an elastic half-plane to a load moving with constant speed on its surface ......
Read more >
Partial Safety Factor - an overview
The partial safety factor method is a design method by which the target safety class (Section 14.2.3) is obtained as closely as possible...
Read more >
This is the question and a partial answer, Could you
This is the question and a partial answer, Could you tell me why the answer is that? give me the reason. what's the...
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