Nest CSS with Sass ,,,

Nest CSS with Sass ,,,
0

#1

Tell us what’s happening:

I can’t pass this challenge, first I nested p inside h1 and now I tried this, but still can’t pass

Your code so far


<style type='text/sass'>
  .blog-post {
    p{
    font-size: 20px;
      h1{
      text-align: center;
      color: blue;
     }
    }
   }
</style>

<div class="blog-post">
  <h1>Blog Title</h1>
  <p>This is a paragraph</p>
</div>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/nest-css-with-sass


#2

h1 isn’t nested under p. h1 is on the same level as p.


#3

thanxx…it worked…