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.

Step 15 Building a City Skyline curriculum is missing important information

See original GitHub issue

Describe the Issue

In step 15 of the curriculum called Learn CSS Variables By Building a City Skyline, the instructions fail to provide the name of the variable that is being referenced. The instructions say: To use a variable, put the variable name in parentheses with var in front of them like this: var(--variable-name). Add your variable as the value of the background-color property of the .bb1a class. Whatever value you gave the variable will be applied to whatever property you use it on. In this case, your variable has the value of #999. So #999 will be used as the value for the background-color property.

Notice that at no point does this paragraph give the exact name of the variable that is to be used to pass this step. (“Add your variable…the variable…your variable” all of these are not variable names)

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-15

Your code


Expected behavior

Instead the instructions should mention the variable name once:

To use a variable, put the variable name in parentheses with var in front of them like this: var(–variable-name). Add your variable as the value of the background-color property of the .bb1a class. Whatever value you gave the variable will be applied to whatever property you use it on. In this case, the variable --building-color1 has the value of #999. So #999 will be used as the value for the background-color property.

Screenshots

No response

System

  • Device: Laptop
  • OS: Windows 11
  • Browser: Chrome
  • Version: n/a

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jeremyltcommented, Sep 9, 2022

Change the text to:

To use a variable, put the variable name in parentheses with var in front of them like this: var(–variable-name). Whatever value you gave the variable will be applied to whatever property you use it on.

Add the variable --building-color-1 you created in the previous step as the value of the background-color property of the .bb1a class.

Seems straightforward of a PR. I’ll open it for first timers.

1reaction
naomi-lgbtcommented, Sep 9, 2022

Releases aren’t done on a specific schedule.

We merge main into prod-staging to trigger a staging release (on freecodecamp.dev), and merge prod-staging into prod-current to trigger a production release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Step 15 Building a City Skyline curriculum is missing important ...
In step 15 of the curriculum called Learn CSS Variables By Building a City Skyline, the instructions fail to provide the name of...
Read more >
Learn CSS Variables by Building a City Skyline - Step 15
Learn CSS Variables by Building a City Skyline - Step 15 ; Tell us what's happening: Describe your issue in detail here i...
Read more >
freeCodeCamp/5d822fd413a79914d39e993d.md at main
freeCodeCamp.org's open-source codebase and curriculum. Learn to code for free. - freeCodeCamp/5d822fd413a79914d39e993d.md at main ...
Read more >
Learn CSS Variables by Building a City Skyline (Part 2)
Build a City Skyline. Questions 14 - 50Check out these books on Amazon below --HTML for Beginners --- https://amzn.to/3PUMStPLearn CSS in ...
Read more >
Let's Build a City Skyline - YouTube
Hello everyone!We're going to learn CSS variables by building a city skyline. The goal is to get you started and have you finish...
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