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.

Make it clear to edit code between style tags

See original GitHub issue

Describe your problem and how to reproduce it: In the Applied Visual Design challenges, the Create Visual Balance Using the text-align Property challenge (the first challenge of the series), it doesn’t make it immediately clear you need to edit the code between the style tags.

It may be obvious to some but as an anxious coder and learner, I jumped straight down to the h4 tag mentioned in the instructions:

Align the h4 tag’s text, which says “Google”, to the center. Then justify the paragraph tag which contains information about how Google was founded.

And then I made the changes as an inline style. Only after submitting my answer did I realize the challenge wanted to change the CSS within the style tags.

Suggested Fix Modify the instructions to mention to edit the code between the style tags at the top.

Add a Link to the page with the problem: https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/create-visual-balance-using-the-text-align-property

Tell us about your browser and operating system:

  • Browser Name: Chrome
  • Browser Version: Version 72.0.3626.117 (Official Build) (64-bit)
  • Operating System: Chrome OS

Note: given the upcoming changes to freeCodeCamp’s next release as of the writing of this issue, you may claim this issue to work on, but it being merged will probably happen after the next big release. If you have any doubts, please ask in the contributors Gitter chat.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
RandellDawsoncommented, Mar 6, 2019

Another option is to modify the tests to allow using whatever styling (inline vs. CSS selector within the style element) to get the job done. Otherwise, like you said, it should be clearer to modify the CSS in the style element.

1reaction
rmfranciacastillocommented, Mar 6, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

The Style Information element - HTML - MDN Web Docs
The <style> HTML element contains style information for a document, or part of a document. It contains CSS, which is applied to the...
Read more >
Reset/remove CSS styles for element only
I've search far and wide for the solution to this, but there are unfortunately none. The best you can do is explicitly override...
Read more >
Alignment, font styles, and horizontal rules in HTML ...
15 Alignment, font styles, and horizontal rules · Formatting. Background color; Alignment; Floating objects. Float an object; Float text around an object ·...
Read more >
Inline Styles in HTML
If you have written the same style 20 times in 20 different <div> tags, you must edit each of those places whenever you...
Read more >
How To Apply CSS Styles to HTML with Cascade and ...
Open about.html in your browser. Right now both sentences have the same style. Next, you will change the color of the <strong> element...
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