Store Data with Sass Variables need help

Store Data with Sass Variables need help
0

#1

Tell us what’s happening:
It’s saying that h2 and .blog-post should have color of red but still
#Your .blog-post element should have a color of red.
#Your h2 elements should have a color of red.
are showing uncomplete

Your code so far


<style type='text/sass'>
  $text-color: red;
  .header{
    text-align: center;
  }
  .blog-post, h2 {
    color: $text-color;
  }
</style>

<h1 class="header">Learn Sass</h1>
<div class="blog-post">
  <h2>Some random title</h2>
  <p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
  <h2>Header #2</h2>
  <p>Here is some more random text.</p>
</div>
<div class="blog-post">
  <h2>Here is another header</h2>
  <p>Even more random text within a paragraph</p>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/store-data-with-sass-variables


#2

Looks good. I had problems with these challenges when I was going through SASS only a few of them worked. I would just move on. I don’t think there’s anything missing


#3

Thanks I also think that there isn’t missing but wanted to confirm .
Once Again Thanks <3


#4

I ran your code and it passed the test just fine.

Make sure to clear your cache, close your browser, and try again. If that doesn’t work, try using Chrome.


#5

Thanks For the response let me try :grinning: