Nest CSS with Sass

Nest CSS with Sass
0

#1

Tell us what’s happening:

Your code so far


<style type='text/sass'>
  .blog-post {
  background-color: red;

    h1 {
    text-align: center;
    color: blue;

    p {
      font-size: 20px;
    }
  }
}

</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/66.0.3359.181 Safari/537.36.

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


#2

The paragraph should not be nested inside the h1 element.


#3

it should be:

.blog-post { background-color: red; h1 { text-align: center; color: blue; } p { font-size: 20px; } }

Blog Title

This is a paragraph