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.

Override Styles in Subsequent CSS

See original GitHub issue

Same issue as previous submission… FireShot Capture 43 - Override Style__ - https___www.freecodecamp.com_chall.pdf fireshot capture 44 - override style__ - https___www freecodecamp com_chall FireShot Capture 45 - HTML - http___www.littlewebhut.com_html_.pdf fireshot capture 46 - html - http___www littlewebhut com_html_ calling bullshit on this site, this is ridiculousness…

<html>

<head>
<title>HTML Test</title>
</head>

<body>



</body>

</html>

<style>
  body {
    background-color: black;
    font-family: Monospace;
    color: green;
  }
  .pink-text {
    color: pink;
  }
  .blue-text {
    color: blue;
  }
</style>
<h1 class="blue-text" class="pink-text">Hello World!</h1>

the above worked/functioned just fine on two separate trials and meet the specified criteria, this is again aggravating

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
ImSerenityADevcommented, Aug 20, 2016

Multiple classes in one tag take the form class="class1 class2" - not in separate invocations like in your code - <h1 class="blue-text" class="pink-text>Hellow World!</h1> - Correct form would be <h1 class="pink-text blue-text">Hello World!</h1>. A lot of things will render (like in the site you used) as fallback when encountering something, weird. (doesn’t make stuff correct). Help is a great place for questions like this.

0reactions
louisprogrammingcommented, Jul 30, 2019

Capture

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override Styles in Subsequent CSS Basic CSS vie ... - YouTube
FOLLOW ALONG LINK: https://www.freecodecamp.org/learn/responsive-web-design/basic- css / override - styles-in-subsequent -cssCheck out the ...
Read more >
Override Styles in Subsequent CSS - The freeCodeCamp Forum
What do I do wrong ? Your code so far <style> body { background-color: black; font-family: monospace; color: green; } .pink-text { color: ......
Read more >
Override Styles in Subsequent CSS - Scrimba.com
Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more. Scrimba is the fun and easy way to...
Read more >
Solve problem "Override Styles in Subsequent CSS" online
Override Styles in Subsequent CSS ... Our "pink-text" class overrode our body element's CSS declaration! We just proved that our classes will override...
Read more >
How CSS style overriding works ? - GeeksforGeeks
For example, if you have provided some style to an element by using the external CSS and after that, you need to change...
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