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.

Inline styling is not different than CSS

See original GitHub issue

Challenge Use CSS Selectors to Style Elements has an issue.

When you entered <h2 style="color: red">CatPhotoApp</h2>, you were giving that individual h2 element an inline style. That’s one way to add style to an element, but a better way is by using CSS, which stands for Cascading Style Sheets.

According to the description, inline styling is defined as a separate thing than CSS. But in reality inline styling is actually a source of CSS having the second priority.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Greenheartcommented, Jan 29, 2017

@Hapoofesgeli It’s a beta version of freeCodeCamp, running on similar infrastructure as the production-site to help us test new features and curriculum-updates.

Feel free to hunt some bugs and report them here as usual! You can also drop by https://gitter.im/FreeCodeCamp/Contributors if you want to hang out with other contributors 😊

0reactions
Hapoofesgelicommented, Jan 29, 2017

I had targeted my own fork for the PR, sorry. Please let me know if there are any other issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

inline styles - What's so bad about in-line CSS? - Stack Overflow
No inline style attribute. Never create your css inline, by which I mean: <element style='color:red'> or even <img style ...
Read more >
Avoiding Inline Styles for CSS Design - ThoughtCo
Inline styles don't separate content from design : Inline styles are exactly the same as embedded font and other clunky design tags that...
Read more >
No, Utility Classes Aren't the Same As Inline Styles | frontstuff
Inline styles only apply to the elements they're declared on. Perhaps the biggest limitation with inline styles is that they can only affect ......
Read more >
Inline Styles in HTML - Codecademy
HTML is meant for conveying structured information. CSS is built to style that structured information. When inline styles are used, this clear separation ......
Read more >
Raw CSS Versus Inline Styles in React - Pluralsight
Inline CSS is one of the most conventional approaches to assign styles to various elements in a component, but inline CSS in React...
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